Sha256: 91889f543525afdb7599217017362f534ec0bfe8a92928e1df318b1291f4a760

Contents?: true

Size: 574 Bytes

Versions: 10

Compression:

Stored size: 574 Bytes

Contents

  #  _____         _
  # |_   _|__  ___| |_
  #   | |/ _ \/ __| __|
  #   | |  __/\__ \ |
  #   |_|\___||___/\__|
  #
  # for lib/facets/integer/of.rb
  #
  # Extracted Mon Sep 03 16:23:07 -0700 2007
  # w/ Test Extraction Ratchet
  #

 require 'facets/integer/of.rb'



  require 'test/unit'

  class TestIntegerEnumerate < Test::Unit::TestCase

    def test_of
      a = 4
      b = a.of{ |i| i*2 }
      assert_equal( [0,2,4,6], b )
    end

    def test_times_collect
      a = 4
      b = a.times_collect{ |i| i*2 }
      assert_equal( [0,2,4,6], b )
    end

  end



Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
facets-2.0.0 test/unit/integer/test_of.rb
facets-2.0.1 test/unit/integer/test_of.rb
facets-2.0.2 test/unit/integer/test_of.rb
facets-2.0.5 test/unit/integer/test_of.rb
facets-2.1.0 test/unit/integer/test_of.rb
facets-2.1.1 test/unit/integer/test_of.rb
facets-2.0.3 test/unit/integer/test_of.rb
facets-2.1.2 test/unit/integer/test_of.rb
facets-2.0.4 test/unit/integer/test_of.rb
facets-2.1.3 test/unit/integer/test_of.rb