def test_float_unacceptable(self): self.assertTrue(JSTLexer.string_to_float_fails('1.8E+308'), "'1.8E+308' is too big")
def test_float_unacceptable(self): self.assertTrue(JSTLexer.string_to_float_fails("1.8E+308"), "'1.8E+308' is too big")
def test_float_acceptable(self): self.assertFalse(JSTLexer.string_to_float_fails('1.123'), "1.123 is an acceptable float")
def test_float_acceptable(self): self.assertFalse(JSTLexer.string_to_float_fails("1.123"), "1.123 is an acceptable float")