Ver código fonte

Minor unit test additions for IgnoreList

git-svn-id: http://svn.dmdirc.com/trunk@3386 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Chris Smith 16 anos atrás
pai
commit
7b2537b7dc
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5
    0
      test/com/dmdirc/IgnoreListTest.java

+ 5
- 0
test/com/dmdirc/IgnoreListTest.java Ver arquivo

@@ -33,6 +33,8 @@ public class IgnoreListTest extends junit.framework.TestCase {
33 33
         {"*chris*", ".*chris.*"},
34 34
         {"c???s", "c...s"},
35 35
         {"c*?*", "c.*..*"},
36
+        {"foo?", "foo."},
37
+        {".^$[]\\(){}|+", "\\.\\^\\$\\[\\]\\\\\\(\\)\\{\\}\\|\\+"},
36 38
     }; 
37 39
     
38 40
     private final String[] illegals = {
@@ -41,6 +43,9 @@ public class IgnoreListTest extends junit.framework.TestCase {
41 43
         "a.{4}",
42 44
         "a|b",
43 45
         "a?",
46
+        "foo\\",
47
+        "a\\?",
48
+        "a\\*",
44 49
     };
45 50
 
46 51
     @Test

Carregando…
Cancelar
Salvar