Sha256: 738959ee51c32a78f6f521cbc7c30f70fdc12ad9caf98031e16becb499ede9c5
Contents?: true
Size: 524 Bytes
Versions: 3
Compression:
Stored size: 524 Bytes
Contents
covers 'facets/array/unique_permutation' test_case Array do method :unique_permutation do test 'example' do [1,1,2,2,3].unique_permutation(2).to_a.assert == [ [1, 1], [1, 2], [1, 3], [2, 1], [2, 2], [2, 3], [3, 1], [3, 2] ] end test 'not eq permutation.to_a' do [1,1,2,3].unique_permutation.to_a.assert != [1,1,2,3].permutation.to_a end test 'eq permutation.to_a.uniq' do [1,1,2,3].unique_permutation.to_a.assert == [1,1,2,3].permutation.to_a.uniq end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
facets-glimmer-3.2.0 | test/core/array/test_unique_permutation.rb |
facets-3.1.0 | test/core/array/test_unique_permutation.rb |
facets-3.0.0 | test/core/array/test_unique_permutation.rb |