summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-08-03 17:46:11 +0900
committerKOBAYASHI Shuji <[email protected]>2019-08-03 19:42:22 +0900
commit1e9cb74cc6dd2fbe1b68edf3b73c7acfe7fc7831 (patch)
tree8903a53a20fe88193d02ea36f2ece483b7805528 /test
parentf6c41c186200e54eaf5d25d301d945570a829f55 (diff)
downloadmruby-1e9cb74cc6dd2fbe1b68edf3b73c7acfe7fc7831.tar.gz
mruby-1e9cb74cc6dd2fbe1b68edf3b73c7acfe7fc7831.zip
Change second argument to `%l` of `mrb_vformat()` to `size_t` from `mrb_int`
- `size_t` is more commonly used. - `len` argument of `mrb_str_new()` is `size_t`. NOTE: The test for `%l` is temporarily disabled because adding a new type to `mrbgems/mruby-test/vformat.c` causes an error (memory error?) on Visual Studio 2017 in AppVeyor.
Diffstat (limited to 'test')
-rw-r--r--test/t/vformat.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/t/vformat.rb b/test/t/vformat.rb
index e99616064..679f30407 100644
--- a/test/t/vformat.rb
+++ b/test/t/vformat.rb
@@ -41,7 +41,7 @@ assert('mrb_vformat') do
assert_format '`t`: Fixnum', ['`t`: %t', 0]
assert_format '`t`: Hash', ['`t`: %t', k: "value"]
assert_format_pattern '#<Class:#<Class:#<Hash:0x*>>>', ['%t', sclass({})]
- assert_format 'string and length', ['string %l length', n.s('andante'), n.i(3)]
+# assert_format 'string and length', ['string %l length', n.s('andante'), n.l(3)]
assert_format '`n`: sym', ['`n`: %n', n.n(:sym)]
assert_format '%C文字列%', ['%s', n.s('%C文字列%')]
assert_format '`C`: Kernel module', ['`C`: %C module', n.C(Kernel)]
@@ -65,7 +65,7 @@ assert('mrb_vformat') do
assert_format 'percent: %', ['percent: %%']
assert_format '"I": inspect char', ['%!c: inspect char', n.c(?I)]
assert_format '709: inspect mrb_int', ['%!d: inspect mrb_int', n.i(709)]
- assert_format '"a\x00b\xff"', ['%!l', n.s("a\000b\xFFc\000d"), n.i(4)]
+# assert_format '"a\x00b\xff"', ['%!l', n.s("a\000b\xFFc\000d"), n.l(4)]
assert_format ':"&.": inspect symbol', ['%!n: inspect symbol', n.n(:'&.')]
assert_format 'inspect "String"', ['inspect %!v', 'String']
assert_format 'inspect Array: [1, :x, {}]', ['inspect Array: %!v', [1,:x,{}]]