mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Add regression test
This commit is contained in:
@@ -23,6 +23,9 @@ assert('Struct#==', '15.2.18.4.1') do
|
||||
cc1 = c.new(1,2)
|
||||
cc2 = c.new(1,2)
|
||||
assert_true cc1 == cc2
|
||||
|
||||
Struct.new(:m1, :m2) { def foo; end }
|
||||
assert_raise(NoMethodError) { Struct.new(:m1).new.foo }
|
||||
end
|
||||
|
||||
assert('Struct#[]', '15.2.18.4.2') do
|
||||
|
||||
Reference in New Issue
Block a user