From f0abd4241f2a8087db4c460cf4b1f531c17c1404 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Wed, 28 Jun 2017 12:03:53 +0900 Subject: Avoid `mrb_funcall()` unless absolutely necessary; ref #3722 As a result, `#chr` is not called for ch < 0x80, so we need to update the "invalid chr" test. --- mrbgems/mruby-sprintf/test/sprintf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mrbgems/mruby-sprintf/test/sprintf.rb') diff --git a/mrbgems/mruby-sprintf/test/sprintf.rb b/mrbgems/mruby-sprintf/test/sprintf.rb index 2c4a7f7a9..89620606b 100644 --- a/mrbgems/mruby-sprintf/test/sprintf.rb +++ b/mrbgems/mruby-sprintf/test/sprintf.rb @@ -75,7 +75,7 @@ assert("String#% with invalid chr") do end assert_raise TypeError do - "%c" % 0 + "%c" % 0x80 end ensure class Fixnum -- cgit v1.2.3