Sha256: 38eb83658b7c2e106e6dd9224bd5fe34f27862c7df2d28935a480d708d05a26e

Contents?: true

Size: 982 Bytes

Versions: 1

Compression:

Stored size: 982 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/more/elementor.rb
#
# Extracted Tue Jul 25 10:07:15 EDT 2006
# Unit Tools Reap Test Extractor
#

require 'facets/more/elementor.rb'


  #require 'test/unit'

  class TCElementor < Test::Unit::TestCase

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

    def test_to_elementor_str
      e = [1,2,3].to_elementor
      assert_equal( ['1','2','3'], e.to_s )
    end

    def test_to_elementor!
      e = [1,2,3].to_elementor!
      e + 3
      assert_equal( [4,5,6], e )
    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

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.7.0 test/lib/facets/more/test_elementor.rb