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

Added assertions for linebreak

This commit is contained in:
Nobuyoshi Nakada 2019-11-03 23:20:01 +09:00
parent 7b2cd548aa
commit 5a7487bdcd
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -952,7 +952,12 @@ class TestRegexp < Test::Unit::TestCase
def test_cclass_R
assert_match(/\A\R\z/, "\r")
assert_match(/\A\R\z/, "\n")
assert_match(/\A\R\z/, "\f")
assert_match(/\A\R\z/, "\v")
assert_match(/\A\R\z/, "\r\n")
assert_match(/\A\R\z/, "\u0085")
assert_match(/\A\R\z/, "\u2028")
assert_match(/\A\R\z/, "\u2029")
end
def test_cclass_X