ruby-changes:30902
From: nobu <ko1@a...>
Date: Fri, 20 Sep 2013 05:02:12 +0900 (JST)
Subject: [ruby-changes:30902] nobu:r42981 (trunk): test_lambda.rb: fix messages
nobu 2013-09-20 05:02:06 +0900 (Fri, 20 Sep 2013) New Revision: 42981 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42981 Log: test_lambda.rb: fix messages * test/ruby/test_lambda.rb (test_{do,brace}_lambda_source_location): fix messages, missed to commit at r42980. Modified files: trunk/test/ruby/test_lambda.rb Index: test/ruby/test_lambda.rb =================================================================== --- test/ruby/test_lambda.rb (revision 42980) +++ test/ruby/test_lambda.rb (revision 42981) @@ -119,7 +119,7 @@ class TestLambdaParameters < Test::Unit: https://github.com/ruby/ruby/blob/trunk/test/ruby/test_lambda.rb#L119 end file, lineno = lmd.source_location assert_match(/^#{ Regexp.quote(__FILE__) }$/, file) - assert_equal(exp_lineno, lineno, "must be ") + assert_equal(exp_lineno, lineno, "must be at the beginning of the block") end def test_brace_lambda_source_location @@ -131,6 +131,6 @@ class TestLambdaParameters < Test::Unit: https://github.com/ruby/ruby/blob/trunk/test/ruby/test_lambda.rb#L131 } file, lineno = lmd.source_location assert_match(/^#{ Regexp.quote(__FILE__) }$/, file) - assert_equal(exp_lineno, lineno, "must be ") + assert_equal(exp_lineno, lineno, "must be at the beginning of the block") end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/