From 2ba2988d2ca07cdfb118f5f6aaee2df84f3f9f8a Mon Sep 17 00:00:00 2001 From: calvin Date: Mon, 10 Oct 2005 21:12:12 +0000 Subject: [PATCH] Add tests with invalid tag chars git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2815 e7d03fd6-7b0d-0410-9947-9c21f3af8025 --- linkcheck/tests/test_parser.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linkcheck/tests/test_parser.py b/linkcheck/tests/test_parser.py index 23acafca..0f3039f3 100644 --- a/linkcheck/tests/test_parser.py +++ b/linkcheck/tests/test_parser.py @@ -49,6 +49,9 @@ parsetests = [ ("""< a >""", """"""), ("""<>""", """<>"""), ("""< >""", """< >"""), + ("""""", """"""), + ("""""", """"""), + ("""""", """"""), # reduce test ("""<""", """<"""), ("""d>""", """d>"""), @@ -79,6 +82,7 @@ parsetests = [ ("""""", """"""), ("""< / a>""", """"""), ("""< /a>""", """"""), + ("""""", """"""), # missing > in end tag ("""""", """"""), # start and end tag (HTML doctype assumed)