Commit 1f3d7e93 authored by ksss's avatar ksss

Class.new add test case

parent c28b46bc
...@@ -226,8 +226,13 @@ assert('Class Dup 2') do ...@@ -226,8 +226,13 @@ assert('Class Dup 2') do
assert_equal(Module, M.dup.class) assert_equal(Module, M.dup.class)
end end
assert('Class new') do assert('Class.new') do
assert_equal(Class, Class.new.class) assert_equal(Class, Class.new.class)
a = []
klass = Class.new do |c|
a << c
end
assert_equal([klass], a)
end end
assert('class to return the last value') do assert('class to return the last value') do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment