Home
last modified time | relevance | path

Searched refs:found (Results 1 – 25 of 2181) sorted by relevance

12345678910>>...88

/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
DTestAutoAST.java44 String found = execParser("foo.g", grammar, "fooParser", "fooLexer", in testTokenList() local
46 assertEquals("abc 34\n", found); in testTokenList()
57 String found = execParser("foo.g", grammar, "fooParser", "fooLexer", in testTokenListInSingleAltBlock() local
59 assertEquals("abc 34\n", found); in testTokenListInSingleAltBlock()
70 String found = execParser("foo.g", grammar, "fooParser", "fooLexer", in testSimpleRootAtOuterLevel() local
72 assertEquals("(abc 34)\n", found); in testSimpleRootAtOuterLevel()
83 String found = execParser("T.g", grammar, "TParser", "TLexer", in testSimpleRootAtOuterLevelReverse() local
85 assertEquals("(abc 34)\n", found); in testSimpleRootAtOuterLevelReverse()
96 String found = execParser("T.g", grammar, "TParser", "TLexer", in testBang() local
98 assertEquals("abc 4532\n", found); in testBang()
[all …]
DTestRewriteAST.java49 String found = execParser("T.g", grammar, "TParser", "TLexer", in testDelete() local
51 assertEquals("", found); in testDelete()
62 String found = execParser("T.g", grammar, "TParser", "TLexer", in testSingleToken() local
64 assertEquals("abc\n", found); in testSingleToken()
75 String found = execParser("T.g", grammar, "TParser", "TLexer", in testSingleTokenToNewNode() local
77 assertEquals("x\n", found); in testSingleTokenToNewNode()
88 String found = execParser("T.g", grammar, "TParser", "TLexer", in testSingleTokenToNewNodeRoot() local
90 assertEquals("(x INT)\n", found); in testSingleTokenToNewNodeRoot()
102 String found = execParser("TT.g", grammar, "TTParser", "TTLexer", in testSingleTokenToNewNode2() local
104 assertEquals("ID\n", found); in testSingleTokenToNewNode2()
[all …]
DTestTreeGrammarRewriteAST.java62 String found = execTreeParser("T.g", grammar, "TParser", "TP.g", in testFlatList() local
64 assertEquals("34 abc\n", found); in testFlatList()
82 String found = execTreeParser("T.g", grammar, "TParser", "TP.g", in testSimpleTree() local
84 assertEquals("(34 abc)\n", found); in testSimpleTree()
101 String found = execTreeParser("T.g", grammar, "TParser", "TP.g", in testNonImaginaryWithCtor() local
103 assertEquals("99\n", found); in testNonImaginaryWithCtor()
121 String found = execTreeParser("T.g", grammar, "TParser", "TP.g", in testCombinedRewriteAndAuto() local
123 assertEquals("(34 abc)\n", found); in testCombinedRewriteAndAuto()
125 found = execTreeParser("T.g", grammar, "TParser", "TP.g", in testCombinedRewriteAndAuto()
127 assertEquals("34\n", found); in testCombinedRewriteAndAuto()
[all …]
DTestSets.java49 String found = execParser("P.g", grammar, "PParser", "PLexer", in testSeqDoesNotBecomeSet() local
51 assertEquals("34\n", found); in testSeqDoesNotBecomeSet()
58 String found = execParser("T.g", grammar, "TParser", "TLexer", in testParserSet() local
60 assertEquals("x\n", found); in testParserSet()
67 String found = execParser("T.g", grammar, "TParser", "TLexer", in testParserNotSet() local
69 assertEquals("z\n", found); in testParserNotSet()
76 String found = execParser("T.g", grammar, "TParser", "TLexer", in testParserNotToken() local
78 assertEquals("zz\n", found); in testParserNotToken()
85 String found = execParser("T.g", grammar, "TParser", "TLexer", in testParserNotTokenWithLabel() local
87 assertEquals("z\n", found); in testParserNotTokenWithLabel()
[all …]
DTestSyntacticPredicateEvaluation.java53 String found = execParser("T.g", grammar, "TParser", "TLexer", in testTwoPredsWithNakedAlt() local
60 assertEquals(expecting, found); in testTwoPredsWithNakedAlt()
62 found = execParser("T.g", grammar, "TParser", "TLexer", in testTwoPredsWithNakedAlt()
68 assertEquals(expecting, found); in testTwoPredsWithNakedAlt()
70 found = execParser("T.g", grammar, "TParser", "TLexer", in testTwoPredsWithNakedAlt()
79 assertEquals(expecting, found); in testTwoPredsWithNakedAlt()
102 String found = execParser("T.g", grammar, "TParser", "TLexer", in testTwoPredsWithNakedAltNotLast() local
109 assertEquals(expecting, found); in testTwoPredsWithNakedAltNotLast()
111 found = execParser("T.g", grammar, "TParser", "TLexer", in testTwoPredsWithNakedAltNotLast()
117 assertEquals(expecting, found); in testTwoPredsWithNakedAltNotLast()
[all …]
DTestHeteroAST.java50 String found = execParser("T.g", grammar, "TParser", "TLexer", in testToken() local
52 assertEquals("a<V>\n", found); in testToken()
62 String found = execParser("T.g", grammar, "TParser", "TLexer", in testTokenCommonTree() local
64 assertEquals("a\n", found); in testTokenCommonTree()
79 String found = execParser("T.g", grammar, "TParser", "TLexer", in testTokenWithQualifiedType() local
81 assertEquals("a<V>\n", found); in testTokenWithQualifiedType()
96 String found = execParser("T.g", grammar, "TParser", "TLexer", in testNamedType() local
98 assertEquals("a<V>\n", found); in testNamedType()
114 String found = execParser("T.g", grammar, "TParser", "TLexer", in testTokenWithLabel() local
116 assertEquals("a<V>\n", found); in testTokenWithLabel()
[all …]
DTestASTConstruction.java45 String found = g.getRule("a").tree.toStringTree(); in testA() local
46 assertEquals(expecting, found); in testA()
55 String found = g.getRule("a").tree.toStringTree(); in testEmptyAlt() local
56 assertEquals(expecting, found); in testEmptyAlt()
66 String found = g.getRule("A").tree.toStringTree(); in testNakeRulePlusInLexer() local
67 assertEquals(expecting, found); in testNakeRulePlusInLexer()
77 String found = g.getRule("a").tree.toStringTree(); in testRulePlus() local
78 assertEquals(expecting, found); in testRulePlus()
88 String found = g.getRule("a").tree.toStringTree(); in testNakedRulePlus() local
89 assertEquals(expecting, found); in testNakedRulePlus()
[all …]
DTestSemanticPredicateEvaluation.java39 String found = execParser("foo.g", grammar, "fooParser", "fooLexer", in testSimpleCyclicDFAWithPredicate() local
41 assertEquals("alt2\n", found); in testSimpleCyclicDFAWithPredicate()
51 String found = execParser("foo.g", grammar, "fooParser", "fooLexer", in testSimpleCyclicDFAWithInstanceVarPredicate() local
53 assertEquals("alt2\n", found); in testSimpleCyclicDFAWithInstanceVarPredicate()
67 String found = execParser("foo.g", grammar, "fooParser", "fooLexer", in testPredicateValidation() local
69 assertEquals("error: FailedPredicateException(a,{false}?)\n", found); in testPredicateValidation()
79 String found = execParser("foo.g", grammar, "fooParser", "fooLexer", in testLexerPreds() local
82 assertEquals("token 2\n", found); in testLexerPreds()
92 String found = execParser("foo.g", grammar, "fooParser", "fooLexer", in testLexerPreds2() local
95 assertEquals("token 1\n", found); in testLexerPreds2()
[all …]
DTestLexer.java51 String found = execParser("P.g", grammar, "PParser", "PLexer", in testSetText() local
53 assertEquals("\t\n", found); in testSetText()
65 String found = execParser("P.g", grammar, "PParser", "PLexer", in testRefToRuleDoesNotSetTokenNorEmitAnother() local
67 assertEquals("-34\n", found); in testRefToRuleDoesNotSetTokenNorEmitAnother()
79 String found = execParser("P.g", grammar, "PParser", "PLexer", in testRefToRuleDoesNotSetChannel() local
81 assertEquals("- 34, channel=0\n", found); in testRefToRuleDoesNotSetChannel()
92 String found = execParser("P.g", grammar, "PParser", "PLexer", in testWeCanSetType() local
94 assertEquals("-34\n", found); in testWeCanSetType()
106 String found = execParser("P.g", grammar, "PParser", "PLexer", in testRefToFragment() local
108 assertEquals("-34\n", found); in testRefToFragment()
[all …]
DTestTreeParsing.java48 String found = execTreeParser("T.g", grammar, "TParser", "TP.g", in testFlatList() local
50 assertEquals("abc, 34\n", found); in testFlatList()
68 String found = execTreeParser("T.g", grammar, "TParser", "TP.g", in testSimpleTree() local
70 assertEquals("abc, 34\n", found); in testSimpleTree()
91 String found = execTreeParser("T.g", grammar, "TParser", "TP.g", in testFlatVsTreeDecision() local
93 assertEquals("^(a 1)b 2\n", found); in testFlatVsTreeDecision()
114 String found = execTreeParser("T.g", grammar, "TParser", "TP.g", in testFlatVsTreeDecision2() local
117 assertEquals("^(a 3)b 5\n", found); in testFlatVsTreeDecision2()
137 String found = execTreeParser("T.g", grammar, "TParser", "TP.g", in testCyclicDFALookahead() local
139 assertEquals("alt 1\n", found); in testCyclicDFALookahead()
[all …]
DTestRewriteTemplates.java46 String found = execParser("T.g", grammar, "TParser", "TLexer", in testDelete() local
48 assertEquals("", found); in testDelete()
59 String found = execParser("T.g", grammar, "TParser", "TLexer", in testAction() local
61 assertEquals("abc\n", found); in testAction()
72 String found = execParser("T.g", grammar, "TParser", "TLexer", in testEmbeddedLiteralConstructor() local
74 assertEquals("abc\n", found); in testEmbeddedLiteralConstructor()
85 String found = execParser("T.g", grammar, "TParser", "TLexer", in testInlineTemplate() local
87 assertEquals("x:abc, y:34;\n", found); in testInlineTemplate()
100 String found = execParser("T.g", grammar, "TParser", "TLexer", in testNamedTemplate() local
102 assertEquals("abc 34\n", found); in testNamedTemplate()
[all …]
DTestJavaCodeGeneration.java46 boolean found = in testDupVarDefForPinchedState()
50 assertEquals(expecting, found); in testDupVarDefForPinchedState()
59 boolean found = in testLabeledNotSetsInLexer()
63 assertEquals(expecting, found); in testLabeledNotSetsInLexer()
73 String found = execParser("T.g", grammar, "TParser", "TLexer", in testLabeledSetsInLexer() local
75 assertEquals("x\n", found); in testLabeledSetsInLexer()
85 String found = execParser("T.g", grammar, "TParser", "TLexer", in testLabeledRangeInLexer() local
87 assertEquals("x\n", found); in testLabeledRangeInLexer()
97 String found = execParser("T.g", grammar, "TParser", "TLexer", in testLabeledWildcardInLexer() local
99 assertEquals("x\n", found); in testLabeledWildcardInLexer()
[all …]
DTestTreeIterator.java47 String found = buf.toString(); in testNode() local
48 assertEquals(expecting, found); in testNode()
58 String found = buf.toString(); in testFlatAB() local
59 assertEquals(expecting, found); in testFlatAB()
69 String found = buf.toString(); in testAB() local
70 assertEquals(expecting, found); in testAB()
80 String found = buf.toString(); in testABC() local
81 assertEquals(expecting, found); in testABC()
91 String found = buf.toString(); in testVerticalList() local
92 assertEquals(expecting, found); in testVerticalList()
[all …]
DTestTreeWizard.java50 String found = t.toStringTree(); in testSingleNode() local
52 assertEquals(expecting, found); in testSingleNode()
58 String found = t.toStringTree(); in testSingleNodeWithArg() local
60 assertEquals(expecting, found); in testSingleNodeWithArg()
66 String found = t.toStringTree(); in testSingleNodeTree() local
68 assertEquals(expecting, found); in testSingleNodeTree()
74 String found = t.toStringTree(); in testSingleLevelTree() local
76 assertEquals(expecting, found); in testSingleLevelTree()
82 String found = t.toStringTree(); in testListTree() local
84 assertEquals(expecting, found); in testListTree()
[all …]
/external/antlr/antlr-3.4/runtime/Python/tests/
Dt058rewriteAST.py123 found = self.execParser(grammar, "a", "abc 34")
124 self.assertEquals("", found)
138 found = self.execParser(grammar, "a", "abc")
139 self.assertEquals("abc", found)
153 found = self.execParser(grammar, "a", "abc")
154 self.assertEquals("x", found)
168 found = self.execParser(grammar, "a", "abc")
169 self.assertEquals("(x INT)", found)
184 found = self.execParser(grammar, "a", "abc")
185 self.assertEquals("ID", found)
[all …]
Dt057autoAST.py123 found = self.execParser(grammar, "a", "abc 34")
124 self.assertEquals("abc 34", found);
138 found = self.execParser(grammar,"a", "abc 34")
139 self.assertEquals("abc 34", found)
153 found = self.execParser(grammar, "a", "abc 34")
154 self.assertEquals("(abc 34)", found)
168 found = self.execParser(grammar, "a", "34 abc")
169 self.assertEquals("(abc 34)", found)
183 found = self.execParser(grammar, "a", "abc 34 dag 4532")
184 self.assertEquals("abc 4532", found)
[all …]
Dt051treeRewriteAST.py76 found = self.execTreeParser(
82 self.failUnlessEqual("34 abc", found)
111 found = self.execTreeParser(
117 self.failUnlessEqual("(34 abc)", found)
146 found = self.execTreeParser(
152 self.failUnlessEqual("(34 abc)", found)
155 found = self.execTreeParser(
161 self.failUnlessEqual("34", found)
190 found = self.execTreeParser(
196 self.failUnlessEqual("(abc abc)", found)
[all …]
Dt053hetero.py120 found = self.execParser(
125 self.failUnlessEqual("a<V>", found)
141 found = self.execParser(
145 self.failUnlessEqual("a", found)
167 found = self.execParser(
172 self.failUnlessEqual("a<V>", found)
194 found = self.execParser(grammar, 'a', input="a")
195 self.assertEquals("a<V>", found)
218 found = self.execParser(
223 self.failUnlessEqual("a<V>", found)
[all …]
Dt049treeparser.py76 found = self.execTreeParser(
82 self.failUnlessEqual("abc, 34", found)
110 found = self.execTreeParser(
116 self.failUnlessEqual("abc, 34", found)
146 found = self.execTreeParser(
151 self.failUnlessEqual("^(a 1)b 2\n", found)
181 found = self.execTreeParser(
186 self.failUnlessEqual("^(a 3)b 5\n", found)
215 found = self.execTreeParser(
220 self.failUnlessEqual("alt 1", found)
[all …]
Dt055templates.py45 found = self.execParser(
50 self.failUnlessEqual("id=abc, int=34", found)
85 found = self.execParser(
91 self.failUnlessEqual("[a+b]", found)
111 found = self.execParser(
116 self.failUnless(found is None)
140 found = self.execParser(
145 self.failUnlessEqual("abc,def,ghi", found)
164 found = self.execParser(
169 self.failUnlessEqual("hello", found)
[all …]
Dt020fuzzy.output1 found class Main
2 found method main
3 found var i
4 found var input
5 found call ANTLRFileStream
6 found var lex
7 found call FuzzyJava
8 found var tokens
9 found call CommonTokenStream
10 found call tokens.toString
[all …]
Dt052import.py157 found = self.execParser(
163 self.failUnlessEqual("S.a", found)
213 found = self.execParser(
219 self.failUnlessEqual("S.a1000", found)
250 found = self.execParser(
256 self.failUnlessEqual("foo", found)
299 found = self.execParser(
305 self.failUnlessEqual("S.a", found)
351 found = self.execParser(
357 self.failUnlessEqual("S.x T.y", found)
[all …]
/external/antlr/antlr-3.4/runtime/JavaScript/tests/functional/
Drhino-python.output1 found method def __init__
2 found method def flush
3 found method def write
4 found class def OutputBuffer
5 found method def __init__
6 found method def write
7 found method def beep
8 found method def startUserInput
9 found method def getinput
10 found method def replaceinput
[all …]
/external/e2fsprogs/tests/f_expand/
Dexpect.1.gz
/external/v8/test/mjsunit/
Dmjsunit.js157 function fail(expectedText, found, name_opt) { argument
165 "> found <" + PrettyPrint(found) + ">";
223 assertSame = function assertSame(expected, found, name_opt) { argument
226 if (found === expected) {
227 if (expected !== 0 || (1 / expected) == (1 / found)) return;
228 } else if ((expected !== expected) && (found !== found)) {
231 fail(PrettyPrint(expected), found, name_opt);
235 assertEquals = function assertEquals(expected, found, name_opt) { argument
236 if (!deepEquals(found, expected)) {
237 fail(PrettyPrint(expected), found, name_opt);
[all …]

12345678910>>...88