mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_basicinstructions.rb: fix old tests.
class variables should be inherited. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b982cff67c
commit
ad272173cd
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Aug 17 22:10:19 2007 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* test/ruby/test_basicinstructions.rb: fix old tests.
|
||||
class variables should be inherited.
|
||||
|
||||
Fri Aug 17 21:20:44 2007 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* eval.c (rb_call), eval_method.ci (rb_add_method, rb_alias),
|
||||
|
|
|
@ -476,9 +476,9 @@ class TestBasicInstructions < Test::Unit::TestCase
|
|||
assert_equal 'B/instance', CVarA.new.cv
|
||||
|
||||
CVarA.cv = 'CVarA@@cv'
|
||||
assert_raise(NameError) { CVarB.cvB }
|
||||
assert_raise(NameError) { CVarB.cvB2 }
|
||||
assert_raise(NameError) { CVarB.new.cvB }
|
||||
assert_equal('CVarA@@cv', CVarB.cvB)
|
||||
assert_equal('CVarA@@cv', CVarB.cvB2)
|
||||
assert_equal('CVarA@@cv', CVarB.new.cvB)
|
||||
CVarB.cvB = 'B/singleton'
|
||||
assert_equal 'B/singleton', CVarB.cvB
|
||||
assert_equal 'B/singleton', CVarB.cvB2
|
||||
|
|
Loading…
Add table
Reference in a new issue