Skip to content

Commit

Permalink
Added test case for JLSCorrectness with simpleName List<String>[]
Browse files Browse the repository at this point in the history
  • Loading branch information
Strum355 committed Sep 9, 2020
1 parent 19197ba commit 5d39292
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/java/spoon/generating/CorrectIdentifierTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,10 @@ public void correctIdentiferUtfChinese() {
CtLocalVariableReference<Object> localVariableRef = new Launcher().getFactory().createLocalVariableReference();
assertDoesNotThrow(() -> localVariableRef.setSimpleName("処理"));
}

@Test
public void correctSquareBrackets() {
CtLocalVariableReference<Object> localVariableRef = new Launcher().getFactory().createLocalVariableReference();
assertDoesNotThrow(() -> localVariableRef.setSimpleName("List<String>[]"));
}
}

0 comments on commit 5d39292

Please sign in to comment.