3031323334353637383940
public void testMatch() { RegexpMatcher m = new RegexpMatcher(); assertTrue(m.matches("[a-z]+", "c")); assertTrue(m.matches("foo|foot", "foo")); } public void testNonmatch() {
3132333435363738394041
public void testMatch() { RegexpMatcher m = new RegexpMatcher(); assertTrue(m.matches("[a-z]+", "c")); assertTrue(m.matches("foo|foot", "foo")); } public void testNonmatch() { RegexpMatcher m = new RegexpMatcher();
3839404142434445464748
public void testNonmatch() { RegexpMatcher m = new RegexpMatcher(); assertTrue(!m.matches("[0-9]+", "q")); assertTrue(!m.matches("foo|foot", "foot")); } public void testBadPattern() {
3940414243444546474849
public void testNonmatch() { RegexpMatcher m = new RegexpMatcher(); assertTrue(!m.matches("[0-9]+", "q")); assertTrue(!m.matches("foo|foot", "foot")); } public void testBadPattern() { RegexpMatcher m = new RegexpMatcher();
4849505152535455565758
{ RegexpMatcher m = new RegexpMatcher(); try { m.matches("[[[", "x"); unreachable(); } catch (ApplicationRuntimeException ex) {