Sha256: 6f31f5e458d39aeab8f0be7e6c63bb22a4e19c9a21f9e72fbe5675f88bb688e1
Contents?: true
Size: 540 Bytes
Versions: 1
Compression:
Stored size: 540 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facet/enumerable/permute.rb # # Extracted Wed Jan 25 11:25:39 EST 2006 # Unit Tools Reap Test Extractor # require 'facet/enumerable/permute.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.0.3 | packages/core/test/lib/facet/enumerable/test_permute.rb |