Spec Results

Designed for use with JUnit and Ant.

Class spec.ruby.core.enumerable.inject

NameTestsErrorsFailuresSkippedSkip %Time(s)
inject100000%0.021

Tests

NameStatusTypeTime(s)
Enumerable#inject with argument takes a block with an accumulator (with argument as initial value) and the current element. Value of block becomes new accumulatorSuccess0.001
Enumerable#inject produces an array of the accumulator and the argument when given a block with a *argSuccess0.001
Enumerable#inject can take two argumentSuccess0.000
Enumerable#inject ignores the block if two argumentsSuccess0.000
Enumerable#inject can take a symbol argumentSuccess0.000
Enumerable#inject without argument takes a block with an accumulator (with first element as initial value) and the current element. Value of block becomes new accumulatorSuccess0.001
Enumerable#inject gathers whole arrays as elements when each yields multipleSuccess0.001
Enumerable#inject with inject arguments(legacy rubycon)Success0.001
Enumerable#inject without inject arguments(legacy rubycon)Success0.002
Enumerable#inject returns nil when fails(legacy rubycon)Success0.000
Properties »