File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
com.oracle.graal.python.test/src/tests/unittest_tags
com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/str Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 48
48
*graalpython.lib-python.3.test.test_unicode.UnicodeTest.test_isdecimal
49
49
*graalpython.lib-python.3.test.test_unicode.UnicodeTest.test_isdigit
50
50
*graalpython.lib-python.3.test.test_unicode.UnicodeTest.test_islower
51
+ *graalpython.lib-python.3.test.test_unicode.UnicodeTest.test_isnumeric
51
52
*graalpython.lib-python.3.test.test_unicode.UnicodeTest.test_isprintable
52
53
*graalpython.lib-python.3.test.test_unicode.UnicodeTest.test_isspace
53
54
*graalpython.lib-python.3.test.test_unicode.UnicodeTest.test_issue28598_strsubclass_rhs
Original file line number Diff line number Diff line change @@ -1795,7 +1795,8 @@ protected String getName() {
1795
1795
abstract static class IsNumericNode extends IsCategoryBaseNode {
1796
1796
@ Override
1797
1797
protected boolean isCategory (int codePoint ) {
1798
- return UCharacter .hasBinaryProperty (codePoint , UProperty .NUMERIC_TYPE );
1798
+ int numericType = UCharacter .getIntPropertyValue (codePoint , UProperty .NUMERIC_TYPE );
1799
+ return numericType == UCharacter .NumericType .DECIMAL || numericType == UCharacter .NumericType .DIGIT || numericType == UCharacter .NumericType .NUMERIC ;
1799
1800
}
1800
1801
1801
1802
@ Override
You can’t perform that action at this time.
0 commit comments