Esempio n. 1
0
 def test_float_addition(self):
     r = lexer_run("12.2+1.2")
     assert [t.name for t in r] == ['T_FLOAT_NUMBER', '+', 'T_FLOAT_NUMBER']
Esempio n. 2
0
 def test_basic(self):
     r = lexer_run("12+12")
     assert [t.name for t in r] == ["T_NUMBER", "+", "T_NUMBER"]