assertEquals("Testing SUBSTIRNG, endindex < 0", null, stringSubstr_.exec(testTuple));
}
@Test
public void testIndexOf() throws IOException {
INDEXOF indexOf = new INDEXOF();
Tuple testTuple = Util.buildTuple("xyz", "");
assertEquals( ((Integer) "xyz".indexOf("")), indexOf.exec(testTuple));
testTuple = Util.buildTuple(null, null);
assertNull(indexOf.exec(testTuple));
testTuple = Util.buildTuple("xyz", "y");
assertEquals( ((Integer) "xyz".indexOf("y")), indexOf.exec(testTuple));
testTuple = Util.buildTuple("xyz", "abc");
assertEquals( ((Integer) "xyz".indexOf("abc")), indexOf.exec(testTuple));
}