Skip to content

Commit

Permalink
adds CESU-8 encoding for encoding spec
Browse files Browse the repository at this point in the history
  • Loading branch information
moofkit authored and eregon committed Oct 22, 2020
1 parent 2642d55 commit d3074c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/string/valid_encoding_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@
str.force_encoding('MacJapanese').valid_encoding?.should be_false
str.force_encoding('UTF-7').valid_encoding?.should be_true
str.force_encoding('UTF8-MAC').valid_encoding?.should be_true
ruby_version_is "2.7" do
str.force_encoding('CESU-8').valid_encoding?.should be_true
end
end

it "returns false if self is valid in one encoding, but invalid in the one it's tagged with" do
Expand Down

0 comments on commit d3074c4

Please sign in to comment.