Sha256: 85cd7b2abb9919cb8ada98402bd3e1935d8ffcebf85dcde4b5f2ac70a209e12d

Contents?: true

Size: 480 Bytes

Versions: 1

Compression:

Stored size: 480 Bytes

Contents

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

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


  require 'test/unit'

  class TCEnumerable < Test::Unit::TestCase

    def test_uniq_by
      a = [-5, -4, -3, -2, -1, 0]
      r = (-5..5).to_a.uniq_by{|i| i*i }
      assert_equal( a, r )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

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