Add test for finding literals
@@ -75,6 +75,12 @@ public class FindFunctionTests extends RefineTest {
Assert.assertEquals(matches[1], "test");
}
+ @Test
+ public void findFunctionFindLiteralTest() throws Exception {
+ String[] matches = (String[]) invoke("find", "This is a test string for testing find.", ".test");
+ Assert.assertEquals(matches.length, 0);
+ }
+
@Test
public void findFunctionFindAllTest2() throws Exception {
String[] matches = (String[]) invoke("find", "hello 123456 goodbye.", "\\d{6}|hello");
