Browse Source

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 years ago
parent
commit
7b2537b7dc
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      test/com/dmdirc/IgnoreListTest.java

+ 5
- 0
test/com/dmdirc/IgnoreListTest.java View File

@@ -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

Loading…
Cancel
Save