We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7076466 commit 9882cbdCopy full SHA for 9882cbd
core/symbol/inspect_spec.rb
@@ -97,12 +97,14 @@
97
:" foo" => ":\" foo\"",
98
:" " => ":\" \"",
99
100
- :"ê" => ":ê",
101
- :"测" => ":测",
102
- :"🦊" => ":🦊",
+ :"ê" => [":ê", ":\"\\u00EA\""],
+ :"测" => [":测", ":\"\\u6D4B\""],
+ :"🦊" => [":🦊", ":\"\\u{1F98A}\""],
103
}
104
105
+ expected_by_encoding = Encoding::default_external == Encoding::UTF_8 ? 0 : 1
106
symbols.each do |input, expected|
107
+ expected = expected[expected_by_encoding] if expected.is_a?(Array)
108
it "returns self as a symbol literal for #{expected}" do
109
input.inspect.should == expected
110
end
0 commit comments