diff options
author | Benoit Daloze <eregontp@gmail.com> | 2019-06-27 21:21:33 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2019-06-27 21:21:33 +0200 |
commit | a2091c3023a6741049d20beffbe8c94c2d5f4732 (patch) | |
tree | 0635b0f178496c38c1418d88533e99fb272c7b79 /spec/ruby/core/array | |
parent | 632a97227e0821bd7bedcf3f053b16e6b0b753fa (diff) |
Update to ruby/spec@94d98ff
Diffstat (limited to 'spec/ruby/core/array')
-rw-r--r-- | spec/ruby/core/array/pack/b_spec.rb | 4 | ||||
-rw-r--r-- | spec/ruby/core/array/pack/h_spec.rb | 4 | ||||
-rw-r--r-- | spec/ruby/core/array/pack/shared/numeric_basic.rb | 2 | ||||
-rw-r--r-- | spec/ruby/core/array/pack/w_spec.rb | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/spec/ruby/core/array/pack/b_spec.rb b/spec/ruby/core/array/pack/b_spec.rb index 759aec13d1..872c1b88d5 100644 --- a/spec/ruby/core/array/pack/b_spec.rb +++ b/spec/ruby/core/array/pack/b_spec.rb @@ -47,7 +47,7 @@ describe "Array#pack with format 'B'" do ].should be_computed_by(:pack, "B*") end - it "returns an BINARY string" do + it "returns a binary string" do ["1"].pack("B").encoding.should == Encoding::BINARY end @@ -98,7 +98,7 @@ describe "Array#pack with format 'b'" do ].should be_computed_by(:pack, "b*") end - it "returns an BINARY string" do + it "returns a binary string" do ["1"].pack("b").encoding.should == Encoding::BINARY end diff --git a/spec/ruby/core/array/pack/h_spec.rb b/spec/ruby/core/array/pack/h_spec.rb index 81fca7d989..85a875fc8b 100644 --- a/spec/ruby/core/array/pack/h_spec.rb +++ b/spec/ruby/core/array/pack/h_spec.rb @@ -97,7 +97,7 @@ describe "Array#pack with format 'H'" do ].should be_computed_by(:pack, "H") end - it "returns an BINARY string" do + it "returns a binary string" do ["41"].pack("H").encoding.should == Encoding::BINARY end end @@ -194,7 +194,7 @@ describe "Array#pack with format 'h'" do ].should be_computed_by(:pack, "h") end - it "returns an BINARY string" do + it "returns a binary string" do ["41"].pack("h").encoding.should == Encoding::BINARY end end diff --git a/spec/ruby/core/array/pack/shared/numeric_basic.rb b/spec/ruby/core/array/pack/shared/numeric_basic.rb index 632d259ab8..3ebdbc4c1a 100644 --- a/spec/ruby/core/array/pack/shared/numeric_basic.rb +++ b/spec/ruby/core/array/pack/shared/numeric_basic.rb @@ -15,7 +15,7 @@ describe :array_pack_numeric_basic, shared: true do lambda { [false].pack(pack_format) }.should raise_error(TypeError) end - it "returns an BINARY string" do + it "returns a binary string" do [0xFF].pack(pack_format).encoding.should == Encoding::BINARY [0xE3, 0x81, 0x82].pack(pack_format(3)).encoding.should == Encoding::BINARY end diff --git a/spec/ruby/core/array/pack/w_spec.rb b/spec/ruby/core/array/pack/w_spec.rb index ac37a0e1c0..889f42bdf7 100644 --- a/spec/ruby/core/array/pack/w_spec.rb +++ b/spec/ruby/core/array/pack/w_spec.rb @@ -36,7 +36,7 @@ describe "Array#pack with format 'w'" do lambda { [-1].pack("w") }.should raise_error(ArgumentError) end - it "returns an BINARY string" do + it "returns a binary string" do [1].pack('w').encoding.should == Encoding::BINARY end end |