mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Ruby 1.9 compat: fix regexp slice test
This commit is contained in:
parent
cce2112f12
commit
7d2add8c96
1 changed files with 1 additions and 1 deletions
|
@ -390,7 +390,7 @@ class MultibyteCharsUTF8BehaviourTest < Test::Unit::TestCase
|
|||
assert_equal 'ちわ', @chars.slice(2..10)
|
||||
assert_equal '', @chars.slice(4..10)
|
||||
assert_equal 'に', @chars.slice(/に/u)
|
||||
assert_equal 'にち', @chars.slice(/に\w/u)
|
||||
assert_equal 'にち', @chars.slice(/に./u)
|
||||
assert_equal nil, @chars.slice(/unknown/u)
|
||||
assert_equal 'にち', @chars.slice(/(にち)/u, 1)
|
||||
assert_equal nil, @chars.slice(/(にち)/u, 2)
|
||||
|
|
Loading…
Reference in a new issue