Sha256: 4539d69991995fc6d3a5dfabc4d592470d05d580c141a4bc68f262102b9e4335
Contents?: true
Size: 715 Bytes
Versions: 10
Compression:
Stored size: 715 Bytes
Contents
# Test facets/elementor.rb. require 'facets/elementor.rb' require 'test/unit' class TCElementor < Test::Unit::TestCase def test_to_elem e = [1,2,3].to_elem assert_equal( [4,5,6], e + 3 ) assert_equal( [0,1,2], e - 1 ) end def test_to_elem_str e = [1,2,3].to_elem assert_equal( ['1','2','3'], e.to_s ) end 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
10 entries across 10 versions & 1 rubygems