-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Milestone
Description
Discussed with @headius, this appears to be encoding related: https://github.com/ruby/pp/actions/runs/14557119350/job/40835512192?pr=41#step:5:25
Test::Unit::AssertionFailedError: <"{\xE3: 1}"> expected but was
<"{あ: 1}">.
diff:
- {�: 1}
? ^
+ {あ: 1}
? ^^
/home/runner/work/pp/pp/test/test_pp.rb:234:in 'test_hash_symbol_colon_key'
231: quote2 = '{"@a": 1, "$a": 1, "+@": 1, "a=": 1, "[]": 1}'
232: quote3 = '{"a\"b": 1, "@@a": 1, "<=>": 1, "===": 1, "[]=": 1}'
233: assert_equal(no_quote, PP.singleline_pp(eval(no_quote), ''.dup))
=> 234: assert_equal({ "\u30[42](https://github.com/ruby/pp/actions/runs/14557119350/job/40835512192?pr=41#step:5:43)": 1 }.inspect, PP.singleline_pp(eval(unicode_quote), ''.dup))
235: assert_equal(quote0, PP.singleline_pp(eval(quote0), ''.dup))
236: assert_equal(quote1, PP.singleline_pp(eval(quote1), ''.dup))
237: assert_equal(quote2, PP.singleline_pp(eval(quote2), ''.dup))
Reactions are currently unavailable