mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@8d74d49
This commit is contained in:
parent
c940397116
commit
d80e44deec
157 changed files with 581 additions and 543 deletions
|
@ -1,5 +1,5 @@
|
|||
require_relative '../spec_helper'
|
||||
require_relative 'fixtures/hash_strings_ascii8bit'
|
||||
require_relative 'fixtures/hash_strings_binary'
|
||||
require_relative 'fixtures/hash_strings_utf8'
|
||||
require_relative 'fixtures/hash_strings_usascii'
|
||||
|
||||
|
@ -141,12 +141,12 @@ describe "Hash literal" do
|
|||
end
|
||||
|
||||
it "does not change encoding of literal string keys during creation" do
|
||||
ascii8bit_hash = HashStringsASCII8BIT.literal_hash
|
||||
binary_hash = HashStringsBinary.literal_hash
|
||||
utf8_hash = HashStringsUTF8.literal_hash
|
||||
usascii_hash = HashStringsUSASCII.literal_hash
|
||||
|
||||
ascii8bit_hash.keys.first.encoding.should == Encoding::ASCII_8BIT
|
||||
ascii8bit_hash.keys.first.should == utf8_hash.keys.first
|
||||
binary_hash.keys.first.encoding.should == Encoding::BINARY
|
||||
binary_hash.keys.first.should == utf8_hash.keys.first
|
||||
utf8_hash.keys.first.encoding.should == Encoding::UTF_8
|
||||
utf8_hash.keys.first.should == usascii_hash.keys.first
|
||||
usascii_hash.keys.first.encoding.should == Encoding::US_ASCII
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue