Sha256: d2847b3023d7ebf61ad128184a0716540cdbd76d764dd538f826caaf0970955a

Contents?: true

Size: 559 Bytes

Versions: 1

Compression:

Stored size: 559 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/array/shuffle.rb
#
# Extracted Wed Aug 23 18:22:53 EDT 2006
# Unit Tools Reap Test Extractor
#

require 'facets/core/array/shuffle.rb'


  require 'test/unit'

  class TCArray < Test::Unit::TestCase

    def test_shuffle
      a = [1,2,3,4,5]
      b = a.shuffle
      assert_equal( a, b.sort )
    end

    def test_shuffle!
      a = [1,2,3,4,5]
      b = a.dup
      b.shuffle!
      assert_equal( a, b.sort )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.7.30 test/lib/facets/core/array/test_shuffle.rb