소스 검색

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 년 전
부모
커밋
7b2537b7dc
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5
    0
      test/com/dmdirc/IgnoreListTest.java

+ 5
- 0
test/com/dmdirc/IgnoreListTest.java 파일 보기

@@ -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…
취소
저장