tests(highlighter): Add test for tilde in url

This commit is contained in:
Luca Salvarani 2023-07-30 11:32:30 +00:00
parent 956bfa5fe5
commit a6aebd5ecf

View file

@ -133,6 +133,7 @@ highlight_tests = [
(" 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/~folder ", [Span(1, 27, "repr.url")]),
("No place like 127.0.0.1", [Span(14, 23, "repr.ipv4")]),
("''", [Span(0, 2, "repr.str")]),
("'hello'", [Span(0, 7, "repr.str")]),