Sha256: b7ea6aeae6a83ef10643899c6567c24da7d4633eea08829c56a927a382363b96

Contents?: true

Size: 556 Bytes

Versions: 1

Compression:

Stored size: 556 Bytes

Contents

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

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


  require 'test/unit'
  require 'set'

  class TCEnumerable < Test::Unit::TestCase

    def test_001
      o = Set.new
      %w[a b c].each_permutation { |x| o << x.join('') }
      r = Set.new(['abc','acb','bac','bca','cab','cba'])
      assert_equal( r, o )
    end
  end


Version data entries

1 entries across 1 versions & 1 rubygems

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