Bug #6454 » bad_inspect.patch
| test/ruby/test_class.rb | ||
|---|---|---|
|
# Start of tests
|
||
|
# ------------------
|
||
|
def test_inspect_changes
|
||
|
x = Class.new
|
||
|
x.inspect
|
||
|
y = x.dup
|
||
|
refute_equal x, y
|
||
|
refute_equal x.inspect, y.inspect
|
||
|
end
|
||
|
def test_s_inherited
|
||
|
assert_equal([ClassTwo, ClassThree, ClassFour], ClassOne.new.subs)
|
||
|
end
|
||