mirror of
https://github.com/ruby/ruby.git
synced 2025-08-28 15:36:16 +02:00
test_regexp.rb, test_string.rb: suppress warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d4ef0b4794
commit
1dc020917f
2 changed files with 8 additions and 8 deletions
|
@ -2189,8 +2189,8 @@ class TestString < Test::Unit::TestCase
|
|||
assert_equal(u("\x82")+("\u3042"*9), ("\u3042"*10).byteslice(2, 28))
|
||||
|
||||
bug7954 = '[ruby-dev:47108]'
|
||||
assert_equal(false, "\u3042".byteslice(0, 2).valid_encoding?)
|
||||
assert_equal(false, ("\u3042"*10).byteslice(0, 20).valid_encoding?)
|
||||
assert_equal(false, "\u3042".byteslice(0, 2).valid_encoding?, bug7954)
|
||||
assert_equal(false, ("\u3042"*10).byteslice(0, 20).valid_encoding?, bug7954)
|
||||
end
|
||||
|
||||
def test_unknown_string_option
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue