commit miss. orz

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2008-02-22 00:42:52 +00:00
parent ca3ce9bb9d
commit 492dde9c09

View File

@ -805,9 +805,9 @@ class TestM17N < Test::Unit::TestCase
assert_equal(nil, u("\xc2\xa1")[1]) assert_equal(nil, u("\xc2\xa1")[1])
str = "\u3042" str = "\u3042"
assert_equal(true, str[0, 0], "[ruby-dev:33895]") assert_equal(true, str[0, 0].ascii_only?, "[ruby-dev:33895]")
assert_equal(false, str[0, 1]) assert_equal(false, str[0, 1].ascii_only?)
assert_equal(false, str[0...-1]) assert_equal(false, str[0..-1].ascii_only?)
end end
def test_str_aref_len def test_str_aref_len