Sha256: 65829cf8e2ee8ea6d0bc7b53a49dc96f7f66e9b9c6bbc66a0d59430baa2d648c

Contents?: true

Size: 720 Bytes

Versions: 1

Compression:

Stored size: 720 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/string/pot.rb
#
# Extracted Fri Feb 16 02:00:37 EST 2007
# Project.rb Test Extraction
#

require 'facets/core/string/pot.rb'


  require 'test/unit'

  class TCString < Test::Unit::TestCase

    def setup
      @a =  ""
    end

    def test_001
      assert_raises( ArgumentError ) { @a.pot(1,2) }
    end

    def test_002
      assert_equal( "0", @a.pot("0") )
      assert_equal( "10", @a.pot("1") )
      assert_equal( "210", @a.pot("2") )
      assert_equal( "3210", @a.pot("3") )
      assert_equal( "43210", @a.pot("4") )
      assert_equal( "543210", @a.pot("5") )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.8.49 test/lib/facets/core/string/test_pot.rb