Example #1
0
 def test_float_unacceptable(self):
     self.assertTrue(JSTLexer.string_to_float_fails('1.8E+308'),
                     "'1.8E+308' is too big")
Example #2
0
 def test_float_unacceptable(self):
     self.assertTrue(JSTLexer.string_to_float_fails("1.8E+308"), "'1.8E+308' is too big")
Example #3
0
 def test_float_acceptable(self):
     self.assertFalse(JSTLexer.string_to_float_fails('1.123'),
                      "1.123 is an acceptable float")
Example #4
0
 def test_float_acceptable(self):
     self.assertFalse(JSTLexer.string_to_float_fails("1.123"), "1.123 is an acceptable float")