Improve the error reporting for the lexer tests
diff --git a/smali/src/test/java/LexerTest.java b/smali/src/test/java/LexerTest.java
index ed28280..5afc2e2 100644
--- a/smali/src/test/java/LexerTest.java
+++ b/smali/src/test/java/LexerTest.java
@@ -185,8 +185,8 @@
int expectedTokenType = tokenTypesByName.get(expectedToken.tokenName);
if (token.getType() != expectedTokenType) {
- Assert.fail(String.format("Invalid token at index %d. Expecting %s, got %s",
- expectedTokenIndex-1, expectedToken.tokenName, getTokenName(token.getType())));
+ Assert.fail(String.format("Invalid token at index %d. Expecting %s, got %s(%s)",
+ expectedTokenIndex-1, expectedToken.tokenName, getTokenName(token.getType()), token.getText()));
}
if (expectedToken.tokenText != null) {