Ejemplo n.º 1
0
 public void testSimple() {
   assertTrue(Context.matches("abc.def", "*.def"));
   assertTrue(Context.matches(".def", "*.def"));
   assertTrue(Context.matches("abc.def", "abc*.def"));
   assertTrue(Context.matches("abc.def", "abc*****.def"));
   assertTrue(Context.matches("abcdef.def", "abc*****.def"));
   assertFalse(Context.matches("def.def", "abc*****.def"));
   assertTrue(Context.matches("abc.def", "abc.def*"));
   assertTrue(Context.matches("abc.defxxx", "abc.def*"));
   assertTrue(Context.matches("abc.defxxx", "abc.def*x"));
   assertTrue(Context.matches("abc.defxxx", "abc*.def*x"));
   assertTrue(Context.matches("abcx.defxxx", "abc*.def*x"));
   assertFalse(Context.matches("abcx.defxxx", "abc.def*x"));
 }