From 3b2c9dda2b0be7392b72d992b54a2081ec1cf279 Mon Sep 17 00:00:00 2001 From: funilrys Date: Sat, 5 Aug 2023 21:00:55 +0200 Subject: [PATCH] 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 --- testUpdateHostsFile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testUpdateHostsFile.py b/testUpdateHostsFile.py index 33b820fe1..59bae8e61 100644 --- a/testUpdateHostsFile.py +++ b/testUpdateHostsFile.py @@ -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(