void () { final ElementPattern pattern = string().oneOfIgnoreCase("a", "B"); assertFalse(pattern.accepts("")); assertFalse(pattern.accepts("ab")); assertFalse(pattern.accepts("d01x")); assertTrue(pattern.accepts("A")); assertTrue(pattern.accepts("b")); }