Sha256: e5f03d56b7122b181a048d55ba7bd293033f9a732873fb05b1c6fd923a7c7995
Contents?: true
Size: 470 Bytes
Versions: 6
Compression:
Stored size: 470 Bytes
Contents
require 'facets/enumerable/every' require 'test/unit' class TCEvery < Test::Unit::TestCase def test_every a = [1,2,3] assert_equal( [4,5,6], a.every + 3 ) assert_equal( [0,1,2], a.every - 1 ) assert_equal( ['1','2','3'], a.every.to_s ) end def test_every! a = [1,2,3] a.every! + 3 assert_equal( [4,5,6], a ) end def test_to_enum_every e = [1,2,3].to_enum(:map) w = e.every + 3 assert_equal( [4,5,6], w ) end end
Version data entries
6 entries across 6 versions & 1 rubygems