|
|
|
[
Permlink
| « Hide
]
Charles Oliver Nutter - 23/Oct/07 08:16 PM
Eeek, I thought we'd seen the last of these. Broken on both trunk and 1.0.
Added a more complete test for many permutations of blocks, block arguments, and define_method to help cover remaining failure cases. Current failures in JRuby:
1) Error:
test_definemethods(TestVarArgBlock):
ArgumentError: wrong number of arguments(1 for 2)
test/test_var_arg_block.rb:135:in `check_requiredargs_definemethods'
test/test_var_arg_block.rb:211:in `test_definemethods'
2) Error:
test_requiredargs_blocks(TestVarArgBlock):
ArgumentError: wrong number of arguments(1 for 2)
test/test_var_arg_block.rb:63:in `test_requiredargs_blocks'
3) Failure:
test_vararg_blocks(TestVarArgBlock)
[test/test_var_arg_block.rb:27:in `test_vararg_blocks'
test/test_var_arg_block.rb:9:in `blockarg'
test/test_var_arg_block.rb:27:in `test_vararg_blocks']:
<[["a"]]> expected but was
<["a"]>.
Ok, I've made fixes to all this on trunk, and the original case passes as well as the other failures. I'm launching into backporting to 1.0 now, it will take a bit.
Fixed on 1.0 branch and trunk. Thanks for the report and test case!
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||