diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-06-12 11:23:39 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-12 16:21:10 +0900 |
| commit | b7031e8bc8fdc250d82480c0cb9fdb6341fa4cae (patch) | |
| tree | 8021f9b84e96a9d705157f2c58e7383162dc6ea8 /mrbgems/mruby-symbol-ext/test/symbol.rb | |
| parent | 52507b1083ba1c562ae506d63a07a51a26815c21 (diff) | |
| download | mruby-b7031e8bc8fdc250d82480c0cb9fdb6341fa4cae.tar.gz mruby-b7031e8bc8fdc250d82480c0cb9fdb6341fa4cae.zip | |
Enable NUL (`\0`) again.
Diffstat (limited to 'mrbgems/mruby-symbol-ext/test/symbol.rb')
| -rw-r--r-- | mrbgems/mruby-symbol-ext/test/symbol.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mrbgems/mruby-symbol-ext/test/symbol.rb b/mrbgems/mruby-symbol-ext/test/symbol.rb index 34c3c6ba5..db686e5f4 100644 --- a/mrbgems/mruby-symbol-ext/test/symbol.rb +++ b/mrbgems/mruby-symbol-ext/test/symbol.rb @@ -13,13 +13,13 @@ end %w[size length].each do |n| assert("Symbol##{n}") do assert_equal 5, :hello.__send__(n) - assert_equal 4, :"aA b".__send__(n) + assert_equal 4, :"aA\0b".__send__(n) if __ENCODING__ == "UTF-8" assert_equal 8, :"こんにちは世界!".__send__(n) - assert_equal 4, :"aあ b".__send__(n) + assert_equal 4, :"aあ\0b".__send__(n) else assert_equal 22, :"こんにちは世界!".__send__(n) - assert_equal 6, :"aあ b".__send__(n) + assert_equal 6, :"aあ\0b".__send__(n) end end end |
