Skip to content

Commit

Permalink
tests(highlighter): Add more tests for repr.url
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeSavefrogs committed Jul 30, 2023
1 parent a6aebd5 commit 2dd2daa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_highlighter.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ def test_wrong_type():
(" https://example.org ", [Span(1, 20, "repr.url")]),
(" http://example.org ", [Span(1, 19, "repr.url")]),
(" http://example.org/index.html ", [Span(1, 30, "repr.url")]),
(" http://example.org/index.html#anchor ", [Span(1, 37, "repr.url")]),
(" http://example.org/index.html?param1=value1 ", [Span(31, 37, 'repr.attrib_name'), Span(38, 44, 'repr.attrib_value'), Span(1, 44, "repr.url")]),
(" http://example.org/~folder ", [Span(1, 27, "repr.url")]),
("No place like 127.0.0.1", [Span(14, 23, "repr.ipv4")]),
("''", [Span(0, 2, "repr.str")]),
Expand Down

0 comments on commit 2dd2daa

Please sign in to comment.