summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-symbol-ext/test/symbol.rb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-06-28 20:08:52 +0900
committerGitHub <[email protected]>2019-06-28 20:08:52 +0900
commit4f4e240024f4e1980a64bc13bcc7fbf518533cbb (patch)
tree25a4691a0440688b659f425b3c1157fa7269e0e4 /mrbgems/mruby-symbol-ext/test/symbol.rb
parentcf7a2292f345be5e8988fa532b85ac40b27c7cab (diff)
parentbc3176da630e3e055d58aa065ff897aec66df280 (diff)
downloadmruby-4f4e240024f4e1980a64bc13bcc7fbf518533cbb.tar.gz
mruby-4f4e240024f4e1980a64bc13bcc7fbf518533cbb.zip
Merge pull request #4538 from shuujii/use-__ENCODING__-in-tests
Use `__ENCODING__` in tests
Diffstat (limited to 'mrbgems/mruby-symbol-ext/test/symbol.rb')
-rw-r--r--mrbgems/mruby-symbol-ext/test/symbol.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-symbol-ext/test/symbol.rb b/mrbgems/mruby-symbol-ext/test/symbol.rb
index 61ecad247..db686e5f4 100644
--- a/mrbgems/mruby-symbol-ext/test/symbol.rb
+++ b/mrbgems/mruby-symbol-ext/test/symbol.rb
@@ -14,7 +14,7 @@ end
assert("Symbol##{n}") do
assert_equal 5, :hello.__send__(n)
assert_equal 4, :"aA\0b".__send__(n)
- if "あ".size == 1 # enable MRB_UTF8_STRING?
+ if __ENCODING__ == "UTF-8"
assert_equal 8, :"こんにちは世界!".__send__(n)
assert_equal 4, :"aあ\0b".__send__(n)
else