blob: 701e20b0afb1f9f1e6031aa3d95e370f00ead2d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
require File.expand_path('../../../../spec_helper', __FILE__)
describe "Array#pack with empty format" do
it "returns an empty String" do
[1, 2, 3].pack("").should == ""
end
it "returns a String with US-ASCII encoding" do
[1, 2, 3].pack("").encoding.should == Encoding::US_ASCII
end
end
|