Lines Matching +full:1 +full:a
26 ASSERT_INT_EQ(match_pattern("", ""), 1); in tests()
34 ASSERT_INT_EQ(match_pattern("", "*"), 1); in tests()
35 ASSERT_INT_EQ(match_pattern("a", "?"), 1); in tests()
36 ASSERT_INT_EQ(match_pattern("aa", "a?"), 1); in tests()
37 ASSERT_INT_EQ(match_pattern("a", "*"), 1); in tests()
38 ASSERT_INT_EQ(match_pattern("aa", "a*"), 1); in tests()
39 ASSERT_INT_EQ(match_pattern("aa", "?*"), 1); in tests()
40 ASSERT_INT_EQ(match_pattern("aa", "**"), 1); in tests()
41 ASSERT_INT_EQ(match_pattern("aa", "?a"), 1); in tests()
42 ASSERT_INT_EQ(match_pattern("aa", "*a"), 1); in tests()
43 ASSERT_INT_EQ(match_pattern("ba", "a?"), 0); in tests()
44 ASSERT_INT_EQ(match_pattern("ba", "a*"), 0); in tests()
45 ASSERT_INT_EQ(match_pattern("ab", "?a"), 0); in tests()
46 ASSERT_INT_EQ(match_pattern("ab", "*a"), 0); in tests()
51 ASSERT_INT_EQ(match_pattern_list("", "*", 0), 1); in tests()
52 ASSERT_INT_EQ(match_pattern_list("", "!*", 0), -1); in tests()
53 ASSERT_INT_EQ(match_pattern_list("", "!a,*", 0), 1); in tests()
54 ASSERT_INT_EQ(match_pattern_list("", "*,!a", 0), 1); in tests()
55 ASSERT_INT_EQ(match_pattern_list("", "a,!*", 0), -1); in tests()
56 ASSERT_INT_EQ(match_pattern_list("", "!*,a", 0), -1); in tests()
57 ASSERT_INT_EQ(match_pattern_list("a", "", 0), 0); in tests()
58 ASSERT_INT_EQ(match_pattern_list("a", "*", 0), 1); in tests()
59 ASSERT_INT_EQ(match_pattern_list("a", "!*", 0), -1); in tests()
60 ASSERT_INT_EQ(match_pattern_list("a", "!a", 0), -1); in tests()
61 /* XXX negated ASSERT_INT_EQ(match_pattern_list("a", "!b", 0), 1); */ in tests()
62 ASSERT_INT_EQ(match_pattern_list("a", "!a,*", 0), -1); in tests()
63 ASSERT_INT_EQ(match_pattern_list("b", "!a,*", 0), 1); in tests()
64 ASSERT_INT_EQ(match_pattern_list("a", "*,!a", 0), -1); in tests()
65 ASSERT_INT_EQ(match_pattern_list("b", "*,!a", 0), 1); in tests()
66 ASSERT_INT_EQ(match_pattern_list("a", "a,!*", 0), -1); in tests()
67 ASSERT_INT_EQ(match_pattern_list("b", "a,!*", 0), -1); in tests()
68 ASSERT_INT_EQ(match_pattern_list("a", "a,!a", 0), -1); in tests()
69 /* XXX negated ASSERT_INT_EQ(match_pattern_list("b", "a,!a", 0), 1); */ in tests()
70 ASSERT_INT_EQ(match_pattern_list("a", "!*,a", 0), -1); in tests()
71 ASSERT_INT_EQ(match_pattern_list("b", "!*,a", 0), -1); in tests()
77 ASSERT_INT_EQ(match_pattern_list("abc", "ABC", 1), 1); in tests()
78 ASSERT_INT_EQ(match_pattern_list("ABC", "abc", 1), 0); in tests()
84 ASSERT_INT_EQ(addr_match_list("a", "*"), 0); in tests()
85 ASSERT_INT_EQ(addr_match_list("127.0.0.1", "*"), 1); in tests()
87 ASSERT_INT_EQ(addr_match_list("127.0.0.1", "127.0.0.1"), 1); in tests()
89 ASSERT_INT_EQ(addr_match_list("127.0.0.1", "!127.0.0.1"), -1); in tests()
90 /* XXX negated ASSERT_INT_EQ(addr_match_list("127.0.0.1", "!127.0.0.2"), 1); */ in tests()
91 ASSERT_INT_EQ(addr_match_list("127.0.0.255", "127.0.0.0/24"), 1); in tests()
93 ASSERT_INT_EQ(addr_match_list("127.0.0.1", "127.0.0.0/24"), 1); in tests()
95 ASSERT_INT_EQ(addr_match_list("127.0.0.1", "!127.0.0.0/24"), -1); in tests()
96 /* XXX negated ASSERT_INT_EQ(addr_match_list("127.0.0.1", "!127.0.1.0/24"), 1); */ in tests()
97 ASSERT_INT_EQ(addr_match_list("127.0.0.1", "10.0.0.1,!127.0.0.1"), -1); in tests()
98 ASSERT_INT_EQ(addr_match_list("127.0.0.1", "!127.0.0.1,10.0.0.1"), -1); in tests()
101 /* XXX negated ASSERT_INT_EQ(addr_match_list("127.0.0.1", "10.0.0.1,!127.0.0.2"), 1); */ in tests()
102 /* XXX negated ASSERT_INT_EQ(addr_match_list("127.0.0.1", "!127.0.0.2,10.0.0.1"), 1); */ in tests()
113 CHECK_FILTER("a,b,c", "", "a,b,c"); in tests()
114 CHECK_FILTER("a,b,c", "a", "b,c"); in tests()
115 CHECK_FILTER("a,b,c", "b", "a,c"); in tests()
116 CHECK_FILTER("a,b,c", "c", "a,b"); in tests()
117 CHECK_FILTER("a,b,c", "a,b", "c"); in tests()
118 CHECK_FILTER("a,b,c", "a,c", "b"); in tests()
119 CHECK_FILTER("a,b,c", "b,c", "a"); in tests()
120 CHECK_FILTER("a,b,c", "a,b,c", ""); in tests()
121 CHECK_FILTER("a,b,c", "b,c", "a"); in tests()
122 CHECK_FILTER("", "a,b,c", ""); in tests()