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:
parent
7b2cd548aa
commit
5a7487bdcd
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue