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