mirror of
https://github.com/ruby/ruby.git
synced 2025-08-28 15:36:16 +02:00
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:
parent
9dcddfbaf5
commit
4525bcae0b
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue