예제 #1
0
 def test_int_verify_overflow(self):
     self.assertTrue(
         JSTLexer.string_to_int_fails(
             "9999999999999999999999999999999999999999"),
         "That should should overflow")
예제 #2
0
파일: test_scanner.py 프로젝트: s-gogna/JST
 def test_int_verify_overflow(self):
     self.assertTrue(
         JSTLexer.string_to_int_fails("9999999999999999999999999999999999999999"), "That should should overflow"
     )
예제 #3
0
 def test_int_verify_no_overflow(self):
     self.assertFalse(JSTLexer.string_to_int_fails("4"),
                      "4 should be acceptable")
예제 #4
0
파일: test_scanner.py 프로젝트: s-gogna/JST
 def test_int_verify_no_overflow(self):
     self.assertFalse(JSTLexer.string_to_int_fails("4"), "4 should be acceptable")