1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test_lambda.rb: fix messages

* test/ruby/test_lambda.rb (test_{do,brace}_lambda_source_location):
  fix messages, missed to commit at r42980.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-09-19 20:02:06 +00:00
parent 5cda4e9071
commit 2a57b71937

View file

@ -119,7 +119,7 @@ class TestLambdaParameters < Test::Unit::TestCase
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::TestCase
}
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