示例#1
0
 def test_check_good_variable(self):
     result = t.check_variables('    a = 7', 6)
     self.assertEqual(result, None)
示例#2
0
 def test_check_bad_variable_O(self):
     ex = 'line: 4, column: 3 name O is bad name'
     result = t.check_variables('    O = 6', 4)
     self.assertEqual(result, ex)
示例#3
0
 def test_check_bad_variable_l(self):
     ex = 'line: 5, column: 3 name l is bad name'
     result = t.check_variables('    l = 7', 5)
     self.assertEqual(result, ex)
示例#4
0
 def test_check_bad_variable_I(self):
     ex = 'line: 3, column: 3 name I is bad name'
     result = t.check_variables('    I = 5', 3)
     self.assertEqual(result, ex)