Skip to content

Commit

Permalink
Add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
ksss committed Jul 22, 2016
1 parent 1a8074a commit bf21063
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mrbgems/mruby-struct/test/struct.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
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
Expand Down

0 comments on commit bf21063

Please sign in to comment.