diff options
Diffstat (limited to 'test/t/string.rb')
| -rw-r--r-- | test/t/string.rb | 5 |
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 |
