< prev index next >
test/jdk/java/lang/Character/CharPropTest.java
Print this page
rev 54996 : 8221431: Support for Unicode 12.1
Reviewed-by:
*** 1,7 ****
/*
! * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 21,52 ****
* questions.
*/
/*
* @test
! * @bug 8202771
* @summary Check j.l.Character.isDigit/isLetter/isLetterOrDigit/isSpaceChar
* /isWhitespace/isTitleCase/isISOControl/isIdentifierIgnorable
* /isJavaIdentifierStart/isJavaIdentifierPart/isUnicodeIdentifierStart
* /isUnicodeIdentifierPart
* @run main CharPropTest
*/
import java.nio.file.Files;
- import java.nio.file.Path;
- import java.nio.file.Paths;
import java.util.stream.Stream;
public class CharPropTest {
private static int diffs = 0;
private static int rangeStart = 0x0000;
private static boolean isRange = false;
public static void main(String[] args) throws Exception {
! Path path = Paths.get(System.getProperty("test.src", "."),
! "UnicodeData.txt");
! try (Stream<String> lines = Files.lines(path)) {
lines.map(String::trim)
.filter(line -> line.length() != 0 && line.charAt(0) != '#')
.forEach(line -> handleOneLine(line));
if (diffs != 0) {
--- 21,49 ----
* questions.
*/
/*
* @test
! * @bug 8202771 8221431
* @summary Check j.l.Character.isDigit/isLetter/isLetterOrDigit/isSpaceChar
* /isWhitespace/isTitleCase/isISOControl/isIdentifierIgnorable
* /isJavaIdentifierStart/isJavaIdentifierPart/isUnicodeIdentifierStart
* /isUnicodeIdentifierPart
+ * @library /lib/testlibrary/java/lang
* @run main CharPropTest
*/
import java.nio.file.Files;
import java.util.stream.Stream;
public class CharPropTest {
private static int diffs = 0;
private static int rangeStart = 0x0000;
private static boolean isRange = false;
public static void main(String[] args) throws Exception {
! try (Stream<String> lines = Files.lines(UCDFiles.UNICODE_DATA)) {
lines.map(String::trim)
.filter(line -> line.length() != 0 && line.charAt(0) != '#')
.forEach(line -> handleOneLine(line));
if (diffs != 0) {
< prev index next >