class MiniTest::Unit::TestCase

def sigma enum, &block

def sigma enum, &block
  enum = enum.map(&block) if block
  enum.inject { |sum, n| sum + n }
end