Sha256: 6148df873a53e8cb231f102f83e134bb5affe7517a94484b61b928229c6c6f2b

Contents?: true

Size: 304 Bytes

Versions: 6

Compression:

Stored size: 304 Bytes

Contents

require 'facets/enumerable/per'
require 'test/unit'

class TCPer < Test::Unit::TestCase

  def test_per
    e = [1,2,3].per.map
    assert_equal( [4,5,6], e + 3 )
    assert_equal( [0,1,2], e - 1 )
  end

  def test_per_again
    e = [1,2,3].per.map
    assert_equal( ['1','2','3'], e.to_s )
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/enumerable/test_per.rb
facets-2.8.3 test/core/enumerable/test_per.rb
facets-2.8.2 test/core/enumerable/test_per.rb
facets-2.8.1 test/core/enumerable/test_per.rb
facets-2.8.0 test/core/enumerable/test_per.rb
facets-2.7.0 test/core/enumerable/test_per.rb