示例#1
0
 @Test
 public void testSuffix() {
   Pattern p = new Pattern("a/");
   assertEquals(1, p.size());
   assertEquals("a", p.peekLast());
   assertEquals("a", p.get(0));
 }
示例#2
0
 @Test
 public void test2() {
   Pattern p = new Pattern("a/b");
   assertEquals(2, p.size());
   assertEquals("b", p.peekLast());
   assertEquals("a", p.get(0));
   assertEquals("b", p.get(1));
 }