Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
comparison tests/test_algpseudo.py @ 95:aed3204723ac
FIX: Test results because of changed whitespace handling
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 03 May 2026 15:14:19 +0200 |
| parents | dc17b778a52b |
| children | dd4eb937485c |
comparison
equal
deleted
inserted
replaced
| 94:dc17b778a52b | 95:aed3204723ac |
|---|---|
| 543 | 543 |
| 544 def test_explicit_tokentype_simple_2(self): | 544 def test_explicit_tokentype_simple_2(self): |
| 545 self.assertTokenStreamEqualComplete( | 545 self.assertTokenStreamEqualComplete( |
| 546 [("Operator", "\n"), | 546 [("Operator", "\n"), |
| 547 ("Operator", "/"), | 547 ("Operator", "/"), |
| 548 ("Text", " \n"), # because of r"\s+", Text for expressions | 548 ("Text", " "), |
| 549 ("Text.Whitespace", "\n"), | |
| 549 ], | 550 ], |
| 550 pygments.lex("\\tt-o/\n\\tt-o// ", self.lexer)) | 551 pygments.lex("\\tt-o/\n\\tt-o// ", self.lexer)) |
| 551 | 552 |
| 552 @unittest.skipIf(sys.version_info[0] <= 2, "Unicode issue on Python 2") | 553 @unittest.skipIf(sys.version_info[0] <= 2, "Unicode issue on Python 2") |
| 553 def test_explicit_tokentype_with_remark(self): | 554 def test_explicit_tokentype_with_remark(self): |
