예제 #1
0
    def test_positive_integer(self):
        test_string = '''1234'''

        result = Identifier.parseString(test_string)
        self.assertEqual(result[0], "1234")
예제 #2
0
    def test_negative_float(self):
        test_string = '''-12.234'''

        result = Identifier.parseString(test_string)
        self.assertEqual(result[0], "-12.234")
예제 #3
0
    def test_identifier(self):
        test_string = '''A_valid_3_identifier'''

        result = Identifier.parseString(test_string)
        self.assertEqual(result[0], 'A_valid_3_identifier')