Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
diff tests/test_algpseudo.py @ 112:ec8767cc5493
More translations (FR and DE)
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Tue, 05 May 2026 17:38:49 +0200 |
| parents | 6cebd3e7bc97 |
| children | 9aea2fd5f037 |
line wrap: on
line diff
--- a/tests/test_algpseudo.py Tue May 05 17:37:58 2026 +0200 +++ b/tests/test_algpseudo.py Tue May 05 17:38:49 2026 +0200 @@ -227,6 +227,17 @@ ], pygments.lex(r"\PROC { also {nichtxs\} hier}", lexer)) + def test_loop_de_not_yet_translated(self): + lexer = pygments.lexers.load_lexer_from_file( + ALGLEXERFILENAME, "AlgPseudocodeLexer_DE") + self.assertTokenStreamEqualComplete( + [("Keyword", "LOOP"), + ("Text", " "), + ("Name.Entity", "a"), + ("Text.Whitespace", "\n"), + ], + pygments.lex(r"\LOOP a", lexer)) + def test_function_1(self): self.assertTokenStreamEqualComplete( [("Keyword", "FUNCTION"),
