Home
last modified time | relevance | path

Searched refs:failUnlessEqual (Results 1 – 24 of 24) sorted by relevance

/external/antlr/antlr-3.4/runtime/Python/unittests/
Dteststreams.py17 self.failUnlessEqual(stream.size(), 3)
25 self.failUnlessEqual(stream.index(), 0)
34 self.failUnlessEqual(stream.index(), 1)
35 self.failUnlessEqual(stream.charPositionInLine, 1)
36 self.failUnlessEqual(stream.line, 1)
39 self.failUnlessEqual(stream.index(), 2)
40 self.failUnlessEqual(stream.charPositionInLine, 2)
41 self.failUnlessEqual(stream.line, 1)
44 self.failUnlessEqual(stream.index(), 3)
45 self.failUnlessEqual(stream.charPositionInLine, 3)
[all …]
Dtesttreewizard.py22 self.failUnlessEqual(typeMap, {})
30 self.failUnlessEqual(typeMap, { 'a': 0, 'b': 1 })
41 self.failUnlessEqual(type, BEGIN)
42 self.failUnlessEqual(lexer.sval, '')
43 self.failUnlessEqual(lexer.error, False)
51 self.failUnlessEqual(type, END)
52 self.failUnlessEqual(lexer.sval, '')
53 self.failUnlessEqual(lexer.error, False)
61 self.failUnlessEqual(type, PERCENT)
62 self.failUnlessEqual(lexer.sval, '')
[all …]
Dtesttree.py30 self.failUnlessEqual(expecting, found)
34 self.failUnlessEqual(expecting, found)
79 self.failUnlessEqual(expecting, found)
83 self.failUnlessEqual(expecting, found)
102 self.failUnlessEqual(expecting, found)
106 self.failUnlessEqual(expecting, found)
119 self.failUnlessEqual(expecting, found)
123 self.failUnlessEqual(expecting, found)
134 self.failUnlessEqual(expecting, found)
138 self.failUnlessEqual(expecting, found)
[all …]
Dtestrecognizers.py14 self.failUnlessEqual(
50 self.failUnlessEqual(tokens, [1, 2, 3, 4])
Dtestdfa.py45 self.failUnlessEqual(
/external/antlr/antlr-3.4/runtime/Python/tests/
Dt042ast.py41 self.failUnlessEqual(
49 self.failUnlessEqual(
57 self.failUnlessEqual(
65 self.failUnlessEqual(
73 self.failUnlessEqual(
81 self.failUnlessEqual(
89 self.failUnlessEqual(
97 self.failUnlessEqual(
105 self.failUnlessEqual(
113 self.failUnlessEqual(
[all …]
Dt048rewrite.py30 self.failUnlessEqual(result, expecting)
39 self.failUnlessEqual(result, expecting)
49 self.failUnlessEqual(result, expecting)
58 self.failUnlessEqual(result, expecting)
67 self.failUnlessEqual(result, expecting)
76 self.failUnlessEqual(result, expecting)
86 self.failUnlessEqual(result, expecting)
97 self.failUnlessEqual(expecting, result)
107 self.failUnlessEqual(result, expecting)
118 self.failUnlessEqual(
[all …]
Dt053hetero.py125 self.failUnlessEqual("a<V>", found)
145 self.failUnlessEqual("a", found)
172 self.failUnlessEqual("a<V>", found)
223 self.failUnlessEqual("a<V>", found)
251 self.failUnlessEqual("a<V>", found)
279 self.failUnlessEqual("a<V>", found)
307 self.failUnlessEqual("a<V>", found)
335 self.failUnlessEqual("begin<V>", found)
363 self.failUnlessEqual("begin<V>", found)
393 self.failUnlessEqual("a<V>", found)
[all …]
Dt051treeRewriteAST.py82 self.failUnlessEqual("34 abc", found)
117 self.failUnlessEqual("(34 abc)", found)
152 self.failUnlessEqual("(34 abc)", found)
161 self.failUnlessEqual("34", found)
196 self.failUnlessEqual("(abc abc)", found)
231 self.failUnlessEqual("3 4 5 a b c", found)
266 self.failUnlessEqual("abc", found)
303 self.failUnlessEqual("a 1", found)
471 self.failUnlessEqual("a b 3", found)
507 self.failUnlessEqual("(a 3)", found)
[all …]
Dt055templates.py50 self.failUnlessEqual("id=abc, int=34", found)
91 self.failUnlessEqual("[a+b]", found)
145 self.failUnlessEqual("abc,def,ghi", found)
169 self.failUnlessEqual("hello", found)
193 self.failUnlessEqual("hello", found)
221 self.failUnlessEqual("hello world", found)
262 self.failUnlessEqual("[1+2+3]", found)
292 self.failUnlessEqual("B: 34", found)
319 self.failUnlessEqual("id=abc, int=34", found)
391 self.failUnlessEqual(expected, found)
[all …]
Dt003lexer.py28 self.failUnlessEqual(token.type, self.lexerModule.ZERO)
31 self.failUnlessEqual(token.type, self.lexerModule.FOOZE)
34 self.failUnlessEqual(token.type, self.lexerModule.ONE)
37 self.failUnlessEqual(token.type, self.lexerModule.EOF)
49 self.failUnlessEqual(exc.unexpectedType, '2')
Dt001lexer.py28 self.failUnlessEqual(token.type, self.lexerModule.ZERO)
31 self.failUnlessEqual(token.type, self.lexerModule.EOF)
40 self.failUnlessEqual(types, [self.lexerModule.ZERO])
52 self.failUnlessEqual(exc.expecting, '0')
53 self.failUnlessEqual(exc.unexpectedType, '1')
Dt049treeparser.py82 self.failUnlessEqual("abc, 34", found)
116 self.failUnlessEqual("abc, 34", found)
151 self.failUnlessEqual("^(a 1)b 2\n", found)
186 self.failUnlessEqual("^(a 3)b 5\n", found)
220 self.failUnlessEqual("alt 1", found)
274 self.failUnlessEqual("abc", found)
307 self.failUnlessEqual("abc", found)
341 self.failUnlessEqual("abc, def", found)
Dt054main.py73 self.failUnlessEqual(len(stdout.getvalue().splitlines()), 3)
99 self.failUnlessEqual(len(stdout.getvalue().splitlines()), 3)
125 self.failUnlessEqual(len(stdout.getvalue().splitlines()), 3)
154 self.failUnlessEqual(len(stdout.splitlines()), 1, stdout)
185 self.failUnlessEqual(stdout, "(+ foo bar)")
226 self.failUnlessEqual(stdout, "u'a + b'")
269 self.failUnlessEqual(stdout, "(+ (ARG a) (ARG b))")
314 self.failUnlessEqual(stdout, "u'b'")
Dt052import.py163 self.failUnlessEqual("S.a", found)
219 self.failUnlessEqual("S.a1000", found)
256 self.failUnlessEqual("foo", found)
305 self.failUnlessEqual("S.a", found)
357 self.failUnlessEqual("S.x T.y", found)
705 self.failUnlessEqual("S.a", found)
792 self.failUnlessEqual("S.A abc", found)
826 self.failUnlessEqual("M.A a", found)
Dt022scopes.py69 self.failUnlessEqual(
94 self.failUnlessEqual(exc.args[0], 'x')
117 self.failUnlessEqual(
134 self.failUnlessEqual(res, 12)
148 self.failUnlessEqual(res, None)
162 self.failUnlessEqual(res, None)
Dt002lexer.py28 self.failUnlessEqual(token.type, self.lexerModule.ZERO)
31 self.failUnlessEqual(token.type, self.lexerModule.ONE)
34 self.failUnlessEqual(token.type, self.lexerModule.EOF)
46 self.failUnlessEqual(exc.unexpectedType, '2')
Dt044trace.py67 self.failUnlessEqual(
75 self.failUnlessEqual(
89 self.failUnlessEqual(
Dt047treeparser.py59 self.failUnlessEqual(
72 self.failUnlessEqual(
118 self.failUnlessEqual(r, 'c')
Dt004lexer.py64 self.failUnlessEqual(exc.expecting, 'f')
65 self.failUnlessEqual(exc.unexpectedType, '2')
Dt046rewrite.py47 self.failUnlessEqual(
Dt056lexer.py45 self.failUnlessEqual("- 34, channel=0", found)
/external/libxml2/python/tests/
DtstLastError.py43 self.failUnlessEqual(domain,e.domain())
44 self.failUnlessEqual(code,e.code())
45 self.failUnlessEqual(message,e.message())
46 self.failUnlessEqual(level,e.level())
47 self.failUnlessEqual(file,e.file())
48 self.failUnlessEqual(line,e.line())
/external/autotest/client/common_lib/test_utils/
Dunittest.py653 failUnlessEqual = _deprecate(assertEqual) variable in TestCase