1
0
Fork 0
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:
Jeremy Kemper 2009-09-13 05:30:59 -07:00
parent cce2112f12
commit 7d2add8c96

View file

@ -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)