[1.9] New Enumerable methods: each_entry and slice_before
---------------------------------------------------------
Key: JRUBY-4654
URL: http://jira.codehaus.org/browse/JRUBY-4654
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules, Ruby 1.9, RubySpec
Affects Versions: JRuby 1.4
Reporter: Vladimir Sizikov
Causes multiple rubyspec failures:
{noformat}
mspec ci -t j -T --1.9 core\enumerable
jruby 1.5.0.dev (ruby 1.9.2dev trunk 24787) (2010-03-13 3336859) (Java
HotSpot(TM) Client VM 1.6.0_18) [x86-java]
....................................................................EEFE.............................................................................................................................................FEEEEE...............................
1)
Enumerable#each_entry yields multiple arguments as an array ERROR
NoMethodError: undefined method `each_entry' for
#<EnumerableSpecs::YieldsMixed:0x191777e>
D:/work/jruby-dev/rubyspec.git/core/enumerable/each_entry_spec.rb:13
D:/work/jruby-dev/rubyspec.git/core/enumerable/each_entry_spec.rb:5
D:/work/jruby-dev/rubyspec.git/core/enumerable/each_entry_spec.rb:4
D:/work/jruby-dev/rubyspec.git/core/enumerable/each_entry_spec.rb:56:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
2)
Enumerable#each_entry returns an enumerator if no block ERROR
NoMethodError: undefined method `each_entry' for
#<EnumerableSpecs::YieldsMixed:0x13c2d7f>
D:/work/jruby-dev/rubyspec.git/core/enumerable/each_entry_spec.rb:18
D:/work/jruby-dev/rubyspec.git/core/enumerable/each_entry_spec.rb:5
D:/work/jruby-dev/rubyspec.git/core/enumerable/each_entry_spec.rb:4
D:/work/jruby-dev/rubyspec.git/core/enumerable/each_entry_spec.rb:56:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
3)
Enumerable#each_entry raises an Argument error when extra arguments FAILED
Expected ArgumentError
but got NoMethodError (undefined method `each_entry' for
#<EnumerableSpecs::YieldsMixed:0xe9aa13>)
D:/work/jruby-dev/rubyspec.git/core/enumerable/each_entry_spec.rb:24
D:/work/jruby-dev/rubyspec.git/core/enumerable/each_entry_spec.rb:5
D:/work/jruby-dev/rubyspec.git/core/enumerable/each_entry_spec.rb:4
D:/work/jruby-dev/rubyspec.git/core/enumerable/each_entry_spec.rb:56:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
4)
Enumerable#each_entry passes extra arguments to #each ERROR
NoMethodError: undefined method `each_entry' for
#<EnumerableSpecs::EachCounter:0x1cefde4>
D:/work/jruby-dev/rubyspec.git/core/enumerable/each_entry_spec.rb:30
D:/work/jruby-dev/rubyspec.git/core/enumerable/each_entry_spec.rb:5
D:/work/jruby-dev/rubyspec.git/core/enumerable/each_entry_spec.rb:4
D:/work/jruby-dev/rubyspec.git/core/enumerable/each_entry_spec.rb:56:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
5)
Enumerable#slice_before raises an Argument error when given an incorrect number
of arguments FAILED
Expected ArgumentError
but got NoMethodError (undefined method `slice_before' for
#<EnumerableSpecs::Numerous:0xe85825 @list=[7, 6, 5, 4, 3, 2, 1]>)
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:73
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:5
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:4
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:56:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
6)
Enumerable#slice_before when given an argument and no block calls === on the
argument to determine when to yield ERROR
NoMethodError: undefined method `slice_before' for
#<EnumerableSpecs::Numerous:0x179b7b0>
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:14
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:5
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:4
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:56:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
7)
An exception occurred during: Mock.verify_count
Enumerable#slice_before when given an argument and no block calls === on the
argument to determine when to yield FAILED
Mock 'filter' expected to receive '===' exactly 7 times but received it 0 times
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:5
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:4
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:56:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
8)
Enumerable#slice_before when given an argument and no block doesn't yield an
empty array if the filter matches the first entry or the last entry ERROR
NoMethodError: undefined method `slice_before' for
#<EnumerableSpecs::Numerous:0x18c458 @list=[7, 6, 5, 4, 3, 2, 1]>
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:22
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:5
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:4
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:56:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
9)
An exception occurred during: Mock.verify_count
Enumerable#slice_before when given an argument and no block doesn't yield an
empty array if the filter matches the first entry or the last entry FAILED
Mock 'filter' expected to receive '===' exactly 7 times but received it 0 times
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:5
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:4
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:56:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
10)
Enumerable#slice_before when given an argument and no block uses standard
boolean as a test ERROR
NoMethodError: undefined method `slice_before' for
#<EnumerableSpecs::Numerous:0x10e18ba>
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:29
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:5
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:4
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:56:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
11)
An exception occurred during: Mock.verify_count
Enumerable#slice_before when given an argument and no block uses standard
boolean as a test FAILED
Mock 'filter' expected to receive '===' exactly 7 times but received it 0 times
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:5
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:4
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:56:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
12)
Enumerable#slice_before when given a block and no argument calls the block to
determine when to yield ERROR
NoMethodError: undefined method `slice_before' for
#<EnumerableSpecs::Numerous:0x13acc52>
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:37
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:5
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:4
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:56:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
13)
Enumerable#slice_before when given a block and an argument calls the block with
a copy of that argument ERROR
NoMethodError: undefined method `slice_before' for
#<EnumerableSpecs::Numerous:0x16752c9>
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:46
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:5
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:4
D:/work/jruby-dev/rubyspec.git/core/enumerable/slice_before_spec.rb:56:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
Finished in 0.552000 seconds
48 files, 249 examples, 584 expectations, 5 failures, 8 errors
{noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email