@Test public void testParseFloatWithNegativeExponent() { final FloatLiteralNode _node; _node = ((FloatLiteralNode) Parser.factory.source_("1.23412e-29").parseExpression()); assertEquals( (st.gravel.support.jvm.SmalltalkFactory) FloatLiteralNode.factory, (st.gravel.support.jvm.SmalltalkFactory) _node.factory()); assertEquals((float) 1.23412e-29f, (float) _node.value(), (float) 0.000000001f); }
@Test public void testParseFloat2() { final FloatLiteralNode _node; _node = ((FloatLiteralNode) Parser.factory.source_("3.0.").parseExpression()); assertEquals( (st.gravel.support.jvm.SmalltalkFactory) FloatLiteralNode.factory, (st.gravel.support.jvm.SmalltalkFactory) _node.factory()); assertEquals((float) 3.0f, (float) _node.value(), (float) 0.000000001f); }