Skip to content

Commit

Permalink
Add String#% test for %p receiving a single hash
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed Feb 10, 2017
1 parent e5be290 commit e66f638
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/ruby/core/string/modulo_spec.rb
Expand Up @@ -517,6 +517,7 @@ def universal.to_f() 0.0 end
("%1$p" % [10, 5]).should == "10"
("%-22p" % 10).should == "10 "
("%*p" % [10, 10]).should == " 10"
("%p" % {capture: 1}).should == "{:capture=>1}"
end

it "calls inspect on arguments for %p format" do
Expand Down

0 comments on commit e66f638

Please sign in to comment.