Home | History | Annotate | Download | only in match

Lines Matching refs:assertMatches

41   def assertMatches(self, checkerString, c1String, varState={}):
48 self.assertMatches("foo", "foo")
49 self.assertMatches("foo", " foo ")
50 self.assertMatches("foo", "foo bar")
54 self.assertMatches("foo bar", "foo bar")
55 self.assertMatches("foo bar", "abc foo bar def")
56 self.assertMatches("foo bar", "foo foo bar bar")
58 self.assertMatches("foo bar", "foo X bar")
62 self.assertMatches("foo{{A|B}}bar", "fooAbar")
63 self.assertMatches("foo{{A|B}}bar", "fooBbar")
67 self.assertMatches("foo<<X>>bar", "foobar", {"X": ""})
68 self.assertMatches("foo<<X>>bar", "fooAbar", {"X": "A"})
69 self.assertMatches("foo<<X>>bar", "fooBbar", {"X": "B"})
76 self.assertMatches("foo<<X:A|B>>bar", "fooAbar")
77 self.assertMatches("foo<<X:A|B>>bar", "fooBbar")
85 self.assertMatches("foo<<X:A|B>>bar<<X>>baz", "fooAbarAbaz")
86 self.assertMatches("foo<<X:A|B>>bar<<X>>baz", "fooBbarBbaz")
99 self.assertMatches("<<X:..>>foo<<X>>", ".*foo.*")
105 def assertMatches(self, checkerString, c1String):
131 self.assertMatches(checkerString, c1String)
134 self.assertMatches("/// CHECK: foo bar", "foo bar")
138 self.assertMatches("/// CHECK: abc {{de.}}", "abc de#")
142 self.assertMatches(
151 self.assertMatches(
173 self.assertMatches("/// CHECK: b{{.}}r", "abc bar def")
179 self.assertMatches(
199 self.assertMatches(
212 self.assertMatches(
247 self.assertMatches(
256 self.assertMatches(
267 self.assertMatches(
308 self.assertMatches(
335 self.assertMatches(
345 self.assertMatches(
369 self.assertMatches(
391 self.assertMatches("/// CHECK-EVAL: True", "foo")
394 self.assertMatches("/// CHECK-EVAL: 1 + 2 == 3", "foo")
401 self.assertMatches(twoVarTestCase, "42 41");