From: "NARUSE, Yui" Date: 2012-02-14T10:10:33+09:00 Subject: [ruby-core:42582] Re: Tests for String#% with % and %{foo} forms? Hi, 2012/2/14 Charles Oliver Nutter : > I'm trying to find test cases for the % and %{foo} forms of > Sting#% and not finding anything in 1.9.3's test/ruby/test_string.rb. > Am I looking in the wrong place? > > "%f" % {foo: 1} # => "1.000000" > "%{foo}f" % {foo: 1} # => "1f" It is in test/ruby/test_sprintf.rb as a test of sprintf. But it should have more tests... -- NARUSE, Yui �