Package com.ericsson.otp.erlang

Examples of com.ericsson.otp.erlang.OtpErlangString.stringValue()


  @Test
  public void testParse2i()
  {
    String text = " \" | a \"   ";
    OtpErlangString string = (OtpErlangString)ErlangLabel.parseText(text);
    Assert.assertEquals(" | a ",string.stringValue());
    checkResponse("\" | a \"",text);
 

  /** Bar 2. */
  @Test
 
View Full Code Here


  @Test
  public void testParse2j()
  {
    String text = "  \" a |\"   ";
    OtpErlangString string = (OtpErlangString)ErlangLabel.parseText(text);
    Assert.assertEquals(" a |",string.stringValue());
    checkResponse("\" a |\"",text);
 

  /** Invalid characters after backslash. */
  @Test
 
View Full Code Here

 
  public void testParse2c()
  {
    String text = " \"this \\\"is an 'atom\"   ";
    OtpErlangString string = (OtpErlangString)ErlangLabel.parseText(text);
    Assert.assertEquals("this \"is an 'atom",string.stringValue());
    Assert.assertEquals(text.trim(),ErlangLabel.dumpErlangObject(string));
  }
 
  /** Quoted characters. */
  @Test
 
View Full Code Here

  @Test
  public void testParse2d()
  {
    String text = " \"this \\\"is \\'fh an \'atom\"   ";
    OtpErlangString string = (OtpErlangString)ErlangLabel.parseText(text);
    Assert.assertEquals("this \"is 'fh an 'atom",string.stringValue());
    checkResponse("\"this \\\"is 'fh an \'atom\"",text);
  }
 
  /** Quoted characters. */
  @Test
 
View Full Code Here

  @Test
  public void testParse2e()
  {
    String text = " \"this \\\" is \\' fh an \'atom\"   ";
    OtpErlangString string = (OtpErlangString)ErlangLabel.parseText(text);
    Assert.assertEquals("this \" is ' fh an 'atom",string.stringValue());
    checkResponse("\"this \\\" is ' fh an 'atom\"",text);
  }
 
  /** Quoted characters. */
  @Test
 
View Full Code Here

  @Test
  public void testParse2f()
  {
    String text = " \"this\\\"i s\\' fh an \'atom\"   ";
    OtpErlangString string = (OtpErlangString)ErlangLabel.parseText(text);
    Assert.assertEquals("this\"i s' fh an \'atom",string.stringValue());
    checkResponse("\"this\\\"i s' fh an \'atom\"",text);
  }
 
  /** Spaces. */
  @Test
 
View Full Code Here

  @Test
  public void testParse2g()
  {
    String text = " \"  \"   ";
    OtpErlangString string = (OtpErlangString)ErlangLabel.parseText(text);
    Assert.assertEquals("  ",string.stringValue());
    checkResponse("\"  \"",text);
 
 
  /** Spaces. */
  @Test
 
View Full Code Here

  @Test
  public void testParse2h()
  {
    String text = " \" a \"   ";
    OtpErlangString string = (OtpErlangString)ErlangLabel.parseText(text);
    Assert.assertEquals(" a ",string.stringValue());
    checkResponse("\" a \"",text);
 

  /** Bar 1. */
  @Test
 
View Full Code Here

  @Test
  public void testParse2i()
  {
    String text = " \" | a \"   ";
    OtpErlangString string = (OtpErlangString)ErlangLabel.parseText(text);
    Assert.assertEquals(" | a ",string.stringValue());
    checkResponse("\" | a \"",text);
 

  /** Bar 2. */
  @Test
 
View Full Code Here

  @Test
  public void testParse2j()
  {
    String text = "  \" a |\"   ";
    OtpErlangString string = (OtpErlangString)ErlangLabel.parseText(text);
    Assert.assertEquals(" a |",string.stringValue());
    checkResponse("\" a |\"",text);
 

  /** Invalid characters after backslash. */
  @Test
 
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.