mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@34e6246
This commit is contained in:
parent
d51b4e34fb
commit
070cbe22b7
35 changed files with 127 additions and 133 deletions
|
@ -388,8 +388,8 @@ describe "String#dump" do
|
|||
end
|
||||
|
||||
it "includes .force_encoding(name) if the encoding isn't ASCII compatible" do
|
||||
"\u{876}".encode('utf-16be').dump.end_with?(".force_encoding(\"UTF-16BE\")").should be_true
|
||||
"\u{876}".encode('utf-16le').dump.end_with?(".force_encoding(\"UTF-16LE\")").should be_true
|
||||
"\u{876}".encode('utf-16be').dump.should.end_with?(".force_encoding(\"UTF-16BE\")")
|
||||
"\u{876}".encode('utf-16le').dump.should.end_with?(".force_encoding(\"UTF-16LE\")")
|
||||
end
|
||||
|
||||
it "keeps origin encoding" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue