mruby/mruby — pull request #313 by masamitsu-murase (2012-06-23 21:42:32+00:00)
Title: Fix struct new

"new" method of subclass of Struct should call "mrb_instance_new" instead of "mrb_class_new_instance_m".

Instances created by mrb_class_new_instance_m have wrong 'tt' member.
I think that 'tt' member of instances of Struct's subclass should be 'MRB_TT_STRUCT'.

I attached two commits.
One is test for Struct#==, but ISO part number may be wrong, because I don't have ISO spec.