3233343536373839404142
public void testMatch() { RegexpMatcher m = new RegexpMatcher(); assertTrue(m.matches("[a-z]+", "c")); assertTrue(m.matches("foo|foot", "foo")); } public void testNonmatch() {
3334353637383940414243
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();
4041424344454647484950
public void testNonmatch() { RegexpMatcher m = new RegexpMatcher(); assertTrue(!m.matches("[0-9]+", "q")); assertTrue(!m.matches("foo|foot", "foot")); } public void testBadPattern() {
4142434445464748495051
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();
5051525354555657585960
{ RegexpMatcher m = new RegexpMatcher(); try { m.matches("[[[", "x"); unreachable(); } catch (ApplicationRuntimeException ex) {
public void testMatch() { RegexpMatcher m = new RegexpMatcher(); assertTrue(m.matches("[a-z]+", "c")); assertTrue(m.matches("foo|foot", "foo")); } public void test_Non_Match() {
public void testMatch() { RegexpMatcher m = new RegexpMatcher(); assertTrue(m.matches("[a-z]+", "c")); assertTrue(m.matches("foo|foot", "foo")); } public void test_Non_Match() { RegexpMatcher m = new RegexpMatcher();
public void test_Non_Match() { RegexpMatcher m = new RegexpMatcher(); assert !m.matches("[0-9]+", "q"); assert !m.matches("foo|efoot", "foot"); } public void test_Bad_Pattern() {
public void test_Non_Match() { RegexpMatcher m = new RegexpMatcher(); assert !m.matches("[0-9]+", "q"); assert !m.matches("foo|efoot", "foot"); } public void test_Bad_Pattern() { RegexpMatcher m = new RegexpMatcher();