Skip to content

Commit

Permalink
After feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
matozoid committed Nov 11, 2017
1 parent 7e9e791 commit 4b5654d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Expand Up @@ -64,7 +64,7 @@ public void cannotRemoveCommentNotUsedAnywhere() {
}

@Test
public void mayContainUnicodeEscapes() {
public void unicodeEscapesArePreservedInComments() {
CompilationUnit cu = parse("// xxx\\u2122xxx");
Comment comment = cu.getAllContainedComments().get(0);
assertEquals(" xxx\\u2122xxx", comment.getContent());
Expand Down
Expand Up @@ -44,8 +44,8 @@ public void identifierMustNotBeNull() {
}

@Test
public void mayContainUnicodeEscapes() {
public void unicodeEscapesArePreservedInIdentifiers() {
SimpleName name = parseSimpleName("xxx\\u2122xxx");
assertEquals("xxx\\u2122xxx", name.asString());
}
}
}
Expand Up @@ -7,8 +7,8 @@

public class StringLiteralExprTest {
@Test
public void unicodeEscapesDoNotGetPreprocessed() {
public void unicodeEscapesArePreservedInStrings() {
StringLiteralExpr omega = parseExpression("\"xxx\\u03a9xxx\"");
assertEquals("xxx\\u03a9xxx", omega.getValue());
}
}
}

0 comments on commit 4b5654d

Please sign in to comment.