Package com.ericsson.otp.erlang

Examples of com.ericsson.otp.erlang.OtpErlangLong


  }
 
  @Test
  public void testToString7a()
  {
    Assert.assertEquals("-234",ErlangLabel.dumpErlangObject(new OtpErlangLong(-234)));
  }
View Full Code Here


  }
 
  @Test
  public void testToString7b()
  {
    Assert.assertEquals("234",ErlangLabel.dumpErlangObject(new OtpErlangLong(234)));
  }
View Full Code Here

 
  @Test
  public void testParse5a()
  {
    String text = " 45888888888";
    OtpErlangLong number = (OtpErlangLong)ErlangLabel.parseText(text);
    Assert.assertEquals(45888888888L,number.longValue());
    Assert.assertEquals(text.trim(),ErlangLabel.dumpErlangObject(ErlangRunner.getRunner().evaluateString(text)));
  }
View Full Code Here

 
  @Test
  public void testParse5b()
  {
    String text = " -458";
    OtpErlangLong number = (OtpErlangLong)ErlangLabel.parseText(text);
    Assert.assertEquals(-458L,number.longValue());
    Assert.assertEquals(text.trim(),ErlangLabel.dumpErlangObject(ErlangRunner.getRunner().evaluateString(text)));
  }
View Full Code Here

 
  @Test
  public void testParse5c()
  {
    String text = " +458";
    OtpErlangLong number = (OtpErlangLong)ErlangLabel.parseText(text);
    Assert.assertEquals(458L,number.longValue());
    Assert.assertEquals("458",ErlangLabel.dumpErlangObject(ErlangRunner.getRunner().evaluateString(text)));
  }
View Full Code Here

  }
 
  @Test
  public void testToString7a()
  {
    Assert.assertEquals("-234",ErlangLabel.dumpErlangObject(new OtpErlangLong(-234)));
  }
View Full Code Here

  }
 
  @Test
  public void testToString7b()
  {
    Assert.assertEquals("234",ErlangLabel.dumpErlangObject(new OtpErlangLong(234)));
  }
View Full Code Here

 
  @Test
  public void testParse5a()
  {
    String text = " 45888888888";
    OtpErlangLong number = (OtpErlangLong)ErlangLabel.parseText(text);
    Assert.assertEquals(45888888888L,number.longValue());
    Assert.assertEquals(text.trim(),ErlangLabel.dumpErlangObject(ErlangRunner.getRunner().evaluateString(text)));
  }
View Full Code Here

 
  @Test
  public void testParse5b()
  {
    String text = " -458";
    OtpErlangLong number = (OtpErlangLong)ErlangLabel.parseText(text);
    Assert.assertEquals(-458L,number.longValue());
    Assert.assertEquals(text.trim(),ErlangLabel.dumpErlangObject(ErlangRunner.getRunner().evaluateString(text)));
  }
View Full Code Here

 
  @Test
  public void testParse5c()
  {
    String text = " +458";
    OtpErlangLong number = (OtpErlangLong)ErlangLabel.parseText(text);
    Assert.assertEquals(458L,number.longValue());
    Assert.assertEquals("458",ErlangLabel.dumpErlangObject(ErlangRunner.getRunner().evaluateString(text)));
  }
View Full Code Here

TOP

Related Classes of com.ericsson.otp.erlang.OtpErlangLong

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.