Skip to content

Commit

Permalink
Improving test coverage for Range#sum [#2489]
Browse files Browse the repository at this point in the history
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information
josevalim authored and lifo committed Aug 9, 2009
1 parent 1382f4d commit ae47f75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/test/core_ext/enumerable_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ def test_empty_sums
def test_enumerable_sums
assert_equal 20, (1..4).sum { |i| i * 2 }
assert_equal 10, (1..4).sum
assert_equal 10, (1..4.5).sum
assert_equal 6, (1...4).sum
assert_equal 'abc', ('a'..'c').sum
assert_raises(NoMethodError) { 1..2.5.sum }
end

def test_each_with_object
Expand Down

0 comments on commit ae47f75

Please sign in to comment.