diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-11-03 23:20:01 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-11-03 23:20:01 +0900 |
commit | 5a7487bdcd96ac7c66e773f1458691ff8fc41265 (patch) | |
tree | cee85681f2acd9c185d5cf053b4d05174a561852 /test | |
parent | 7b2cd548aa52fa434006dccff62a6050ed5fd881 (diff) | |
download | ruby-5a7487bdcd96ac7c66e773f1458691ff8fc41265.tar.gz |
Added assertions for linebreak
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_regexp.rb | 5 |
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 |