mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-07-01 10:46:51 +00:00
Add new test case.
Indeed, even with the original regex, the following test doesn't pass. Therefore, it is necessary to add it into the tests. www.example-3045.foobar.com
This commit is contained in:
@@ -905,7 +905,7 @@ class TestNormalizeRule(BaseStdout):
|
||||
sys.stdout = StringIO()
|
||||
|
||||
def test_no_comment_raw(self):
|
||||
for rule in ("twitter.com", "google.com", "foo.bar.edu", "www.example-foo.bar.edu"):
|
||||
for rule in ("twitter.com", "google.com", "foo.bar.edu", "www.example-foo.bar.edu", "www.example-3045.foobar.com"):
|
||||
expected = (rule, "0.0.0.0 " + rule + "\n")
|
||||
|
||||
actual = normalize_rule(
|
||||
|
||||
Reference in New Issue
Block a user