Sha256: d0fad47021818ccbb8995f7035f3cfbcb75d4ace60b7c22ac885b2ccd5004db3

Contents?: true

Size: 628 Bytes

Versions: 1

Compression:

Stored size: 628 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/enumerable/every.rb
#
# Extracted Fri Feb 16 02:00:36 EST 2007
# Project.rb Test Extraction
#

require 'facets/core/enumerable/every.rb'


  require 'test/unit'

  class TCEnumerable < Test::Unit::TestCase

    def test_every_1
      a = [1,2,3]
      assert_equal( [4,5,6], a.every + 3 )
      assert_equal( [0,1,2], a.every - 1 )
      assert_equal( ['1','2','3'], a.every.to_s )
    end

    def test_every_2
      a = [1,2,3]
      a.every! + 3
      assert_equal( [4,5,6], a )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.8.49 test/lib/facets/core/enumerable/test_every.rb