ruby-changes:58551
From: Nobuyoshi <ko1@a...>
Date: Sun, 3 Nov 2019 23:23:55 +0900 (JST)
Subject: [ruby-changes:58551] 5a7487bdcd (master): Added assertions for linebreak
https://git.ruby-lang.org/ruby.git/commit/?id=5a7487bdcd From 5a7487bdcd96ac7c66e773f1458691ff8fc41265 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 3 Nov 2019 23:20:01 +0900 Subject: Added assertions for linebreak diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb index 6cfd7df..05099d3 100644 --- a/test/ruby/test_regexp.rb +++ b/test/ruby/test_regexp.rb @@ -952,7 +952,12 @@ class TestRegexp < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_regexp.rb#L952 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/