Browse files

Merge pull request #722 from masuidrive/fixed_mrbtest

Fixed mrbtest result numbers
  • Loading branch information...
2 parents a4b95c6 + 5d9aeb1 commit 0ff251438cf0fac727da8e8d99071cbdf46e7cfe @matz matz committed Jan 10, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 tasks/mrbgems_test.rake
View
6 tasks/mrbgems_test.rake
@@ -43,9 +43,9 @@ MRuby.each_target do
f.puts %Q[ ]
%w(ok_test ko_test kill_test).each do |vname|
- f.puts %Q[ val1 = mrb_gv_get(mrb2, mrb_intern(mrb, "$#{vname}"));]
- f.puts %Q[ if(mrb_fixnum_p(val1)) {]
- f.puts %Q[ val2 = mrb_gv_get(mrb, mrb_intern(mrb, "$#{vname}"));]
+ f.puts %Q[ val2 = mrb_gv_get(mrb2, mrb_intern(mrb2, "$#{vname}"));]
+ f.puts %Q[ if(mrb_fixnum_p(val2)) {]
+ f.puts %Q[ val1 = mrb_gv_get(mrb, mrb_intern(mrb, "$#{vname}"));]
f.puts %Q[ mrb_gv_set(mrb, mrb_intern(mrb, "$#{vname}"), mrb_fixnum_value(mrb_fixnum(val1) + mrb_fixnum(val2)));]
f.puts %Q[ }\n]
end

0 comments on commit 0ff2514

Please sign in to comment.