summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-12-19 14:36:14 -0800
committerYukihiro "Matz" Matsumoto <[email protected]>2012-12-19 14:36:14 -0800
commit6751715480858d587b860fcac7cbe0b87bd0bd5c (patch)
treef1929a2be8ce7b797a377a5c799b2c6d6e13133f /test
parentc02c264be2b1bc685f3c958f863d2a1c599f9ec8 (diff)
parent72ae2150c74359210e3e842f861d1dd66be464b6 (diff)
downloadmruby-6751715480858d587b860fcac7cbe0b87bd0bd5c.tar.gz
mruby-6751715480858d587b860fcac7cbe0b87bd0bd5c.zip
Merge pull request #649 from masamitsu-murase/fix_string_bytes
Modify String#bytes.
Diffstat (limited to 'test')
-rw-r--r--test/t/string.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/t/string.rb b/test/t/string.rb
index 1e921c668..05a610e00 100644
--- a/test/t/string.rb
+++ b/test/t/string.rb
@@ -369,7 +369,10 @@ assert('String#bytes') do
str1 = "hello"
bytes1 = [104, 101, 108, 108, 111]
- str1.bytes == bytes1
+ str2 = "\xFF"
+ bytes2 = [0xFF]
+
+ str1.bytes == bytes1 and str2.bytes == bytes2
end
assert('String#each_byte') do