Sha256: 94f102f5aeadeb7a38a4df6730b33ad7fc4b66b42ee87ab2fb4a76d13d888d41

Contents?: true

Size: 555 Bytes

Versions: 1

Compression:

Stored size: 555 Bytes

Contents

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

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.8.49 test/lib/facets/core/array/test_shuffle.rb