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
|
@ -2,9 +2,9 @@
|
|||
require_relative '../../spec_helper'
|
||||
|
||||
describe "String#b" do
|
||||
it "returns an ASCII-8BIT encoded string" do
|
||||
"Hello".b.should == "Hello".force_encoding(Encoding::ASCII_8BIT)
|
||||
"こんちには".b.should == "こんちには".force_encoding(Encoding::ASCII_8BIT)
|
||||
it "returns an BINARY encoded string" do
|
||||
"Hello".b.should == "Hello".force_encoding(Encoding::BINARY)
|
||||
"こんちには".b.should == "こんちには".force_encoding(Encoding::BINARY)
|
||||
end
|
||||
|
||||
it "returns new string without modifying self" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue