Package org.codehaus.jparsec.Tokens

Examples of org.codehaus.jparsec.Tokens.ScientificNotation


  public void testInteger() {
    assertFragment(Tag.INTEGER, "123", Tokens.integerLiteral("123"));
  }
 
  public void testScientificNumber() {
    ScientificNotation number = Tokens.scientificNotation("1.0", "2");
    assertEquals("1.0E2", number.toString());
    assertEquals("1.0", number.significand);
    assertEquals("2", number.exponent);
    ObjectTester.assertEqual(number, number, Tokens.scientificNotation("1.0", "2"));
    ObjectTester.assertNotEqual(number,
        Tokens.scientificNotation("1.0", "-2"), Tokens.scientificNotation("2", "2"));
View Full Code Here


    assertFragment(Tag.INTEGER, "123", Tokens.integerLiteral("123"));
  }

  @Test
  public void testScientificNumber() {
    ScientificNotation number = Tokens.scientificNotation("1.0", "2");
    assertEquals("1.0E2", number.toString());
    assertEquals("1.0", number.significand);
    assertEquals("2", number.exponent);
    ObjectTester.assertEqual(number, number, Tokens.scientificNotation("1.0", "2"));
    ObjectTester.assertNotEqual(number,
        Tokens.scientificNotation("1.0", "-2"), Tokens.scientificNotation("2", "2"));
View Full Code Here

TOP

Related Classes of org.codehaus.jparsec.Tokens.ScientificNotation

Copyright © 2018 www.massapicom. 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.