Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
diff tests/test_algpseudo.py @ 291:b09873e4df58
Unit test: enhance some test for \ttX
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 22 May 2026 12:57:49 +0200 |
| parents | 6fc7f9c1d89d |
| children |
line wrap: on
line diff
--- a/tests/test_algpseudo.py Fri May 22 12:48:39 2026 +0200 +++ b/tests/test_algpseudo.py Fri May 22 12:57:49 2026 +0200 @@ -1081,6 +1081,7 @@ def test_string_to_defined_tokentype_empty(self): t = string_to_defined_tokentype("") self.assertIs(t, Token) + self.assertIsNot(t, Token.Error) def test_string_to_undefined_tokentype(self): self.assertIsNone(string_to_defined_tokentype("non-existing"))
