Search in sources :

Example 1 with CapString

use of com.dexels.navajo.functions.CapString in project navajo by Dexels.

the class StandardFunctionsTest method testCapString.

@Test
public void testCapString() throws TMLExpressionException {
    CapString t = new CapString();
    t.reset();
    t.insertStringOperand("012345678901234567890");
    t.insertIntegerOperand(6);
    String res = (String) t.evaluate();
    System.err.println(">" + res + "<");
    assertEquals("012345", res);
}
Also used : CapString(com.dexels.navajo.functions.CapString) CapString(com.dexels.navajo.functions.CapString) Test(org.junit.Test)

Aggregations

CapString (com.dexels.navajo.functions.CapString)1 Test (org.junit.Test)1