Package st.gravel.support.compiler.ast

Examples of st.gravel.support.compiler.ast.FixedPointLiteralNode.factory()


  @Test
  public void testParseFixedPoint() {
    final FixedPointLiteralNode _node;
    _node = ((FixedPointLiteralNode) Parser.factory.source_("12345.0067s").parseExpression());
    assertEquals((st.gravel.support.jvm.SmalltalkFactory) FixedPointLiteralNode.factory, (st.gravel.support.jvm.SmalltalkFactory) _node.factory());
    assertEquals((String) "12345.0067s", (String) _node.valueString());
  }

  @Test
  public void testParseFixedPointNegativeWithExponent() {
View Full Code Here


  @Test
  public void testParseFixedPointNegativeWithExponent() {
    final FixedPointLiteralNode _node;
    _node = ((FixedPointLiteralNode) Parser.factory.source_("-2.5s2").parseExpression());
    assertEquals((st.gravel.support.jvm.SmalltalkFactory) FixedPointLiteralNode.factory, (st.gravel.support.jvm.SmalltalkFactory) _node.factory());
    assertEquals((String) "-2.5s2", (String) _node.valueString());
  }

  @Test
  public void testParseFixedPointNegativeWithoutExponent() {
View Full Code Here

  @Test
  public void testParseFixedPointNegativeWithoutExponent() {
    final FixedPointLiteralNode _node;
    _node = ((FixedPointLiteralNode) Parser.factory.source_("-2.5s").parseExpression());
    assertEquals((st.gravel.support.jvm.SmalltalkFactory) FixedPointLiteralNode.factory, (st.gravel.support.jvm.SmalltalkFactory) _node.factory());
    assertEquals((String) "-2.5s", (String) _node.valueString());
  }

  @Test
  public void testParseFixedPointWithExponent() {
View Full Code Here

  @Test
  public void testParseFixedPointWithExponent() {
    final FixedPointLiteralNode _node;
    _node = ((FixedPointLiteralNode) Parser.factory.source_("5.1s2").parseExpression());
    assertEquals((st.gravel.support.jvm.SmalltalkFactory) FixedPointLiteralNode.factory, (st.gravel.support.jvm.SmalltalkFactory) _node.factory());
    assertEquals((String) "5.1s2", (String) _node.valueString());
  }

  @Test
  public void testParseFixedPointWithoutExponent() {
View Full Code Here

  @Test
  public void testParseFixedPointWithoutExponent() {
    final FixedPointLiteralNode _node;
    _node = ((FixedPointLiteralNode) Parser.factory.source_("2.5s").parseExpression());
    assertEquals((st.gravel.support.jvm.SmalltalkFactory) FixedPointLiteralNode.factory, (st.gravel.support.jvm.SmalltalkFactory) _node.factory());
    assertEquals((String) "2.5s", (String) _node.valueString());
  }

  @Test
  public void testParseFixedPointWithZero() {
View Full Code Here

  @Test
  public void testParseFixedPointWithZero() {
    final FixedPointLiteralNode _node;
    _node = ((FixedPointLiteralNode) Parser.factory.source_("0.5s").parseExpression());
    assertEquals((st.gravel.support.jvm.SmalltalkFactory) FixedPointLiteralNode.factory, (st.gravel.support.jvm.SmalltalkFactory) _node.factory());
    assertEquals((String) "0.5s", (String) _node.valueString());
  }

  @Test
  public void testParseFixedPointWithZero2() {
View Full Code Here

  @Test
  public void testParseFixedPointWithZero2() {
    final FixedPointLiteralNode _node;
    _node = ((FixedPointLiteralNode) Parser.factory.source_("0.05s").parseExpression());
    assertEquals((st.gravel.support.jvm.SmalltalkFactory) FixedPointLiteralNode.factory, (st.gravel.support.jvm.SmalltalkFactory) _node.factory());
    assertEquals((String) "0.05s", (String) _node.valueString());
  }

  @Test
  public void testParseFloat() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.