Skip to content

Commit

Permalink
Refactor overzealous test
Browse files Browse the repository at this point in the history
  • Loading branch information
matozoid committed Nov 11, 2017
1 parent 5b9bb6f commit 7e9e791
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@
public class StringLiteralExprTest {
@Test
public void unicodeEscapesDoNotGetPreprocessed() {
StringLiteralExpr omega = parseExpression("\"\\u03a9\"");
assertEquals('\\', omega.getValue().charAt(0));
assertEquals('u', omega.getValue().charAt(1));
assertEquals('0', omega.getValue().charAt(2));
assertEquals('3', omega.getValue().charAt(3));
assertEquals('a', omega.getValue().charAt(4));
assertEquals('9', omega.getValue().charAt(5));
StringLiteralExpr omega = parseExpression("\"xxx\\u03a9xxx\"");
assertEquals("xxx\\u03a9xxx", omega.getValue());
}
}

0 comments on commit 7e9e791

Please sign in to comment.