Sha256: 324f20fc1b60ad03603f93159a1b7e949c031ff9106e85f2d5aecc9e013af3fb

Contents?: true

Size: 550 Bytes

Versions: 1

Compression:

Stored size: 550 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/enumerable/each_unique_pair.rb
#
# Extracted Mon Jul 03 00:56:56 EDT 2006
# Unit Tools Reap Test Extractor
#

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


  require 'test/unit'

  class TCEnumerable < Test::Unit::TestCase

    def test_each_unique_pair
      r = []
      a = [1,2,3,4]
      a.each_unique_pair{ |a,b| r << [a,b] }
      assert_equal( [[1,2],[1,3],[1,4],[2,3],[2,4],[3,4]], r )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.4.4 test/lib/facets/core/enumerable/test_each_unique_pair.rb