summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-sprintf/test/sprintf.rb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-06-28 12:03:53 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-06-28 12:03:53 +0900
commitf0abd4241f2a8087db4c460cf4b1f531c17c1404 (patch)
tree3e47e2fd72ea7a0672f835f3ea6fec834b10b9b9 /mrbgems/mruby-sprintf/test/sprintf.rb
parent3554a41a5445cb8e89d365ac27bed3139e055047 (diff)
downloadmruby-f0abd4241f2a8087db4c460cf4b1f531c17c1404.tar.gz
mruby-f0abd4241f2a8087db4c460cf4b1f531c17c1404.zip
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.
Diffstat (limited to 'mrbgems/mruby-sprintf/test/sprintf.rb')
-rw-r--r--mrbgems/mruby-sprintf/test/sprintf.rb2
1 files changed, 1 insertions, 1 deletions
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