Use __ENCODING__ in tests

It cannot be used for `String#size` test if judging whether or not `MRB_UTF8_STRING` is defined by result of `String#size`.
This commit is contained in:
KOBAYASHI Shuji
2019-06-28 19:26:29 +09:00
parent dc03bea854
commit bc3176da63
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
##
# String ISO Test
UTF8STRING = ("\343\201\202".size == 1)
UTF8STRING = __ENCODING__ == "UTF-8"
assert('String', '15.2.10') do
assert_equal Class, String.class