1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

add some tests for Unicode Version 14.0.0

This commit is contained in:
Martin Dürst 2022-03-12 21:33:51 +09:00
parent 9b545b0caf
commit 8f59482f5d
2 changed files with 6 additions and 0 deletions

View file

@ -1205,6 +1205,11 @@ class TestRegexp < Test::Unit::TestCase
assert_no_match(/^\p{age=12.0}$/u, "\u32FF")
assert_match(/^\p{age=12.1}$/u, "\u32FF")
assert_no_match(/^\p{age=13.0}$/u, "\u{10570}")
assert_match(/^\p{age=14.0}$/u, "\u{10570}")
assert_match(/^\p{age=14.0}$/u, "\u9FFF")
assert_match(/^\p{age=14.0}$/u, "\u{2A6DF}")
assert_match(/^\p{age=14.0}$/u, "\u{2B738}")
end
MatchData_A = eval("class MatchData_\u{3042} < MatchData; self; end")

View file

@ -2384,6 +2384,7 @@ CODE
assert_equal(S("HELLO"), S("HELLO").upcase)
assert_equal(S("ABC HELLO 123"), S("abc HELLO 123").upcase)
assert_equal(S("H\0""ELLO"), S("H\0""ello").upcase)
assert_equal(S("\u{10574}"), S("\u{1059B}").upcase)
end
def test_upcase!