assertEquals(eval(r, "2009", 3, 2, "10"), "2010");
assertEquals(eval(r, "123456", 1, 3, "@"), "@456");
}
public void testREPT() throws Exception {
REPT r = new REPT();
assertResult("REPT({1},3.2)", "111");
assertEquals(eval(r, "*-", 3), "*-*-*-");
assertEquals(eval(r, "-", 10), "----------");
assertException("rept(1,1,1)");
}