143144145146147148149150151
assertEquals(eval(r, "-", 10), "----------"); assertException("rept(1,1,1)"); } public void testRIGHT() throws Exception { RIGHT r = new RIGHT(); assertEquals(eval(r, "Sale Price", 5), "Price"); assertEquals(eval(r, "Stock Number"), "r"); }