summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-11-03 23:20:01 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-11-03 23:20:01 +0900
commit5a7487bdcd96ac7c66e773f1458691ff8fc41265 (patch)
treecee85681f2acd9c185d5cf053b4d05174a561852 /test
parent7b2cd548aa52fa434006dccff62a6050ed5fd881 (diff)
Added assertions for linebreak
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_regexp.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb
index 6cfd7df824..05099d3638 100644
--- a/test/ruby/test_regexp.rb
+++ b/test/ruby/test_regexp.rb
@@ -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