Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed the bug of sprintf() within "%{named}" format.
Test Script: {{{ require 'test/unit/assertions.rb' include Test::Unit::Assertions assert_equal("value", sprintf("%{key}", :key => "value")) assert_equal("1234.56", sprintf("%{key}", :key => 1234.56)) assert_equal("value{key2}", sprintf("%{key}{key2}", :key => "value")) assert_raise(ArgumentError) {sprintf("%1${key2}", :key => "value")} puts :ok }}} git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4948 23306eb0-4c56-4727-a40e-e92c0eb68959
- Loading branch information