assertTrue(m.contains("foo|foot", "12foot12"));
}
public void testNotContains()
{
RegexpMatcher m = new RegexpMatcher();
assertTrue(!m.contains("[0-9]+", "q"));
assertTrue(!m.contains("^(\\d{5}(-\\d{4})?)$", "0651"));
assertTrue(!m.contains("^(\\d{5}(-\\d{4})?)$", "065147"));
assertTrue(!m.contains("^(\\d{5}(-\\d{4})?)$", "06514-314"));
assertTrue(!m.contains("^(\\d{5}(-\\d{4})?)$", "06514-31497"));
assertTrue(!m.contains("^(foo|foot)$", "12foot12"));
}