Package com.ericsson.otp.erlang

Examples of com.ericsson.otp.erlang.OtpErlangInt.longValue()


    }

    @Override
    public void dump(OtpErlangObject arg, StringBuffer resultHolder) {
      OtpErlangInt longValue = (OtpErlangInt) arg;
      resultHolder.append(longValue.longValue());
    }

    @Override
    public OtpErlangObject parseObject(
        @SuppressWarnings("unused") Lexer lexer) {
View Full Code Here


    }

    @Override
    public void dump(OtpErlangObject arg, StringBuffer resultHolder) {
      OtpErlangInt longValue = (OtpErlangInt) arg;
      resultHolder.append(longValue.longValue());
    }

    @Override
    public OtpErlangObject parseObject(
        @SuppressWarnings("unused") Lexer lexer) {
View Full Code Here

  @Test
  public void testParse3()
  {
    String text = " -45 ";
    OtpErlangInt number = (OtpErlangInt)ErlangLabel.parseText(text);
    Assert.assertEquals(-45,number.longValue());
    Assert.assertEquals(text.trim(),ErlangLabel.dumpErlangObject(runner.evaluateString(text)));
  }
 
  @Test
  public void testParse4()
View Full Code Here

  @Test
  public void testParse4()
  {
    String text = " 45 ";
    OtpErlangInt number = (OtpErlangInt)ErlangLabel.parseText(text);
    Assert.assertEquals(45,number.longValue());
    Assert.assertEquals(text.trim(),ErlangLabel.dumpErlangObject(runner.evaluateString(text)));
  }
 
  @Test
  public void testParse4fail1()
View Full Code Here

    }

    @Override
    public void dump(OtpErlangObject arg, StringBuffer resultHolder) {
      OtpErlangInt longValue = (OtpErlangInt) arg;
      resultHolder.append(longValue.longValue());
    }

    @Override
    public OtpErlangObject parseObject(
        @SuppressWarnings("unused") Lexer lexer) {
View Full Code Here

    }

    @Override
    public void dump(OtpErlangObject arg, StringBuffer resultHolder) {
      OtpErlangInt longValue = (OtpErlangInt) arg;
      resultHolder.append(longValue.longValue());
    }

    @Override
    public OtpErlangObject parseObject(
        @SuppressWarnings("unused") Lexer lexer) {
View Full Code Here

  @Test
  public void testParse3()
  {
    String text = " -45 ";
    OtpErlangInt number = (OtpErlangInt)ErlangLabel.parseText(text);
    Assert.assertEquals(-45,number.longValue());
    Assert.assertEquals(text.trim(),ErlangLabel.dumpErlangObject(ErlangRunner.getRunner().evaluateString(text)));
  }
 
  @Test
  public void testParse4()
View Full Code Here

  @Test
  public void testParse4()
  {
    String text = " 45 ";
    OtpErlangInt number = (OtpErlangInt)ErlangLabel.parseText(text);
    Assert.assertEquals(45,number.longValue());
    Assert.assertEquals(text.trim(),ErlangLabel.dumpErlangObject(ErlangRunner.getRunner().evaluateString(text)));
  }
 
  @Test
  public void testParse4fail1()
View Full Code Here

  @Test
  public void testParse3()
  {
    String text = " -45 ";
    OtpErlangInt number = (OtpErlangInt)ErlangLabel.parseText(text);
    Assert.assertEquals(-45,number.longValue());
    Assert.assertEquals(text.trim(),ErlangLabel.dumpErlangObject(ErlangRunner.getRunner().evaluateString(text)));
  }
 
  @Test
  public void testParse4()
View Full Code Here

  @Test
  public void testParse4()
  {
    String text = " 45 ";
    OtpErlangInt number = (OtpErlangInt)ErlangLabel.parseText(text);
    Assert.assertEquals(45,number.longValue());
    Assert.assertEquals(text.trim(),ErlangLabel.dumpErlangObject(ErlangRunner.getRunner().evaluateString(text)));
  }
 
  @Test
  public void testParse4fail1()
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.