diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-02 14:05:28 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-02 14:05:28 +0000 |
commit | 4525bcae0b98e750fd28c29030bccd378c69406f (patch) | |
tree | 915dc7ebf78fe44176a88d134b753418b4a6dc79 /test/ruby/test_string.rb | |
parent | 9dcddfbaf56e62679edebcce157e03af4121ebe9 (diff) |
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
Diffstat (limited to 'test/ruby/test_string.rb')
-rw-r--r-- | test/ruby/test_string.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb index faa7bd670d..3b1029ecdd 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -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 |