Searched refs:expectedTokens (Results 1 – 3 of 3) sorted by relevance
/external/protobuf/csharp/src/Google.Protobuf.Test/ |
D | JsonTokenizerTest.cs | 360 private static void AssertTokens(string json, params JsonToken[] expectedTokens) in AssertTokens() argument 362 AssertTokensNoReplacement(json.Replace('\'', '"'), expectedTokens); in AssertTokens() 372 … private static void AssertTokensNoReplacement(string json, params JsonToken[] expectedTokens) in AssertTokensNoReplacement() argument 376 for (int i = 0; i < expectedTokens.Length; i++) in AssertTokensNoReplacement() 381 Assert.Fail("Expected {0} but reached end of token stream", expectedTokens[i]); in AssertTokensNoReplacement() 383 Assert.AreEqual(expectedTokens[i], actualToken); in AssertTokensNoReplacement() 392 private static void AssertThrowsAfter(string json, params JsonToken[] expectedTokens) in AssertThrowsAfter() argument 396 for (int i = 0; i < expectedTokens.Length; i++) in AssertThrowsAfter() 401 Assert.Fail("Expected {0} but reached end of document", expectedTokens[i]); in AssertThrowsAfter() 403 Assert.AreEqual(expectedTokens[i], actualToken); in AssertThrowsAfter()
|
/external/smali/smali/src/test/java/org/jf/smali/ |
D | LexerTest.java | 155 List<ExpectedToken> expectedTokens = expectedTokensParser.getExpectedTokens(); in runTest() local 178 if (expectedTokenIndex >= expectedTokens.size()) { in runTest() 187 ExpectedToken expectedToken = expectedTokens.get(expectedTokenIndex++); in runTest() 207 if (expectedTokenIndex < expectedTokens.size()) { in runTest() 208 …ert.fail(String.format("Not enough tokens. Expecting %d tokens, but got %d", expectedTokens.size(), in runTest()
|
/external/smali/smali/src/test/antlr/org/jf/smali/ |
D | expectedTokensTestGrammar.g | 98 private final ArrayList<ExpectedToken> expectedTokens = new ArrayList<ExpectedToken>(); 101 return Collections.unmodifiableList(expectedTokens); 148 expectedTokens.add(new ExpectedToken($TOKEN_NAME.getText(), $STRING_LITERAL.getText())); 152 expectedTokens.add(new ExpectedToken($TOKEN_NAME.getText()));
|