Sha256: 4e6ea46aa0c518b8d2ad7053ad236f80d4c143a62cb3c6a90012ecfd6d2b2ba5

Contents?: true

Size: 730 Bytes

Versions: 1

Compression:

Stored size: 730 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/mega/nack.rb
#
# Extracted Fri Oct 28 14:20:18 EDT 2005
# Unit Tools Reap Test Extractor
#

require 'mega/nack.rb'


  require 'test/unit'

  class TC_Nack < Test::Unit::TestCase

    def scalar( x )
      if x.kind_of?(Enumerable)
        return nack(ArgumentError, "Value cannot not be enumerable")
      end
      x
    end

    def test000
      assert_equal( 1, scalar(1) )
    end

    def test001
      assert_equal( nack, scalar([1,2]) )
    end

    def test002
      assert_equal( 1, nail(scalar(1)) )
    end

    def test003
      assert_raises(ArgumentError) { nail(scalar([1,2])) }
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-0.9.0 test/lib/mega/test_nack.rb