public class GlobPatternTest {
private void assertMatch(boolean yes, String glob, String...input) {
GlobPattern pattern = new GlobPattern(glob);
for (String s : input) {
boolean result = pattern.matches(s);
assertTrue(glob +" should"+ (yes ? "" : " not") +" match "+ s,
yes ? result : !result);
}
}