Ejemplo n.º 1
0
  @Test
  public void testSmoke() throws Exception {
    for (int i = 0; i < 4000; i++) {
      String identifier = toJavaIdentifier(String.valueOf((char) i), false);

      for (int j = 0; j < identifier.length(); j++) {
        char charAt = identifier.charAt(j);
        assertTrue(identifier + ":" + charAt, isValidJavaLatinIdentifier(j == 0, charAt));
      }
    }
  }