Beispiel #1
0
 def test_int_verify_overflow(self):
     self.assertTrue(
         JSTLexer.string_to_int_fails(
             "9999999999999999999999999999999999999999"),
         "That should should overflow")
Beispiel #2
0
 def test_int_verify_overflow(self):
     self.assertTrue(
         JSTLexer.string_to_int_fails("9999999999999999999999999999999999999999"), "That should should overflow"
     )
Beispiel #3
0
 def test_int_verify_no_overflow(self):
     self.assertFalse(JSTLexer.string_to_int_fails("4"),
                      "4 should be acceptable")
Beispiel #4
0
 def test_int_verify_no_overflow(self):
     self.assertFalse(JSTLexer.string_to_int_fails("4"), "4 should be acceptable")