Sha256: 17915a13b003082dbef0779f3ad349e7a0ea7951a6ce61e98a60363f06d56aff

Contents?: true

Size: 516 Bytes

Versions: 2

Compression:

Stored size: 516 Bytes

Contents

require 'facets/array/product'
require 'test/unit'

class TC_Array_Product < Test::Unit::TestCase

  def test_op_product
    a = [1,2,3] ** [4,5,6]
    assert_equal( [[1, 4],[1, 5],[1, 6],[2, 4],[2, 5],[2, 6],[3, 4],[3, 5],[3, 6]], a )
  end

  #     def test_op_mod
  #       a = [:A,:B,:C]
  #       assert_equal( a[1], a/1 )
  #       assert_equal( :B, a/1 )
  #     end
  #
  #     def test_op_div
  #       a = [:A,:B,:C]
  #       assert_equal( a[1], a/1 )
  #       assert_equal( :B, a/1 )
  #     end

end


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facets-2.4.0 test/array/test_product.rb
facets-2.4.1 test/array/test_product.rb