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