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
|
@ -14,8 +14,8 @@ describe "Regexp#encoding" do
|
|||
/ASCII/n.encoding.should == Encoding::US_ASCII
|
||||
end
|
||||
|
||||
it "returns ASCII-8BIT if the 'n' modifier is supplied and non-US-ASCII characters are present" do
|
||||
/\xc2\xa1/n.encoding.should == Encoding::ASCII_8BIT
|
||||
it "returns BINARY if the 'n' modifier is supplied and non-US-ASCII characters are present" do
|
||||
/\xc2\xa1/n.encoding.should == Encoding::BINARY
|
||||
end
|
||||
|
||||
it "defaults to UTF-8 if \\u escapes appear" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue