subclass of String

* test/ruby/test_string.rb (TestString2): tests for subclass of
  String.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-03-02 14:05:28 +00:00
parent 9dcddfbaf5
commit 4525bcae0b

View file

@ -1977,3 +1977,10 @@ class TestString < Test::Unit::TestCase
assert_equal(u("\x82")+("\u3042"*9), ("\u3042"*10).byteslice(2, 28))
end
end
class TestString2 < TestString
def initialize(*args)
super
@cls = S2
end
end