fix unit tests

This commit is contained in:
Terence Parr 2012-05-24 13:08:15 -07:00
parent 6539c5f464
commit 3b1d91e010
1 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ public class TestCommonTokenStream extends BaseTest {
tokens.LT(i++); // push it past end
tokens.LT(i++);
String result = tokens.toString();
String result = tokens.getText();
String expecting = "x = 3 * 0 + 2 * 0;";
assertEquals(expecting, result);
}
@ -146,7 +146,7 @@ public class TestCommonTokenStream extends BaseTest {
tokens.consume();
tokens.LT(1);
String result = tokens.toString();
String result = tokens.getText();
String expecting = "x = 3 * 0 + 2 * 0;";
assertEquals(expecting, result);
}