diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-11-25 09:31:51 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-11-25 09:31:51 +0900 |
| commit | 79e3980a7fea28a729393f4fb43415948255027e (patch) | |
| tree | 3aafe4b8bf26eedd18a688a763b236ec4ef1e475 /mrbgems/mruby-struct/test/struct.rb | |
| parent | 7f05ba86f2dee182bde6d6f2f1840f1edd030a37 (diff) | |
| parent | b60d6c42aaa10ac99a03a92a3a34da4bee066af1 (diff) | |
| download | mruby-79e3980a7fea28a729393f4fb43415948255027e.tar.gz mruby-79e3980a7fea28a729393f4fb43415948255027e.zip | |
resolve conflict; ref #3281
Diffstat (limited to 'mrbgems/mruby-struct/test/struct.rb')
| -rw-r--r-- | mrbgems/mruby-struct/test/struct.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mrbgems/mruby-struct/test/struct.rb b/mrbgems/mruby-struct/test/struct.rb index bbfe18cb2..3e5d00d1f 100644 --- a/mrbgems/mruby-struct/test/struct.rb +++ b/mrbgems/mruby-struct/test/struct.rb @@ -179,3 +179,9 @@ assert("Struct#initialize_copy requires struct to be the same type") do Struct.remove_const :Test end end + +assert("Struct.new does not allow array") do + assert_raise(TypeError) do + Struct.new("Test", [:a]) + end +end |
