comparison 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
comparison
equal deleted inserted replaced
290:3e2f7ca64894 291:b09873e4df58
1079 self.assertIs(t, Token.Generic.Error) 1079 self.assertIs(t, Token.Generic.Error)
1080 1080
1081 def test_string_to_defined_tokentype_empty(self): 1081 def test_string_to_defined_tokentype_empty(self):
1082 t = string_to_defined_tokentype("") 1082 t = string_to_defined_tokentype("")
1083 self.assertIs(t, Token) 1083 self.assertIs(t, Token)
1084 self.assertIsNot(t, Token.Error)
1084 1085
1085 def test_string_to_undefined_tokentype(self): 1086 def test_string_to_undefined_tokentype(self):
1086 self.assertIsNone(string_to_defined_tokentype("non-existing")) 1087 self.assertIsNone(string_to_defined_tokentype("non-existing"))
1087 # twice to assert that it it not created by the call 1088 # twice to assert that it it not created by the call
1088 self.assertIsNone(string_to_defined_tokentype("non-existing")) 1089 self.assertIsNone(string_to_defined_tokentype("non-existing"))