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:
parent
5cda4e9071
commit
2a57b71937
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue