Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (11 sloc) 0.343 kB
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
ruby_version_is "1.9" do
it "returns a String with US-ASCII encoding" do
[1, 2, 3].pack("").encoding.should == Encoding::US_ASCII
end
end
end
Jump to Line
Something went wrong with that request. Please try again.