Add another test case for java

This commit is contained in:
Clément Fournier
2022-05-01 18:09:04 +02:00
parent 669f2fecbd
commit e6054e4b65
2 changed files with 20 additions and 1 deletions

View File

@ -131,7 +131,7 @@ public class ParserCornersTest {
@Test
public void testUnicodeIndent() {
// https://github.com/pmd/pmd/issues/3423
java7.parseResource("UnicodeIndent.java");
java7.parseResource("UnicodeIdentifier.java");
}
@Test

View File

@ -16,3 +16,22 @@ public class PmdTest {
}
}
enum CodeSet {
START_CODE_A('Ë'),
START_CODE_B('Ì'),
START_CODE_C('Í'),
A_TILDE('\u00c3'),
STOP_CODE('Î');
private final char encoding;
CodeSet(final char encoding) {
this.encoding = encoding;
}
public char getEncoding() {
return encoding;
}
}