Sha256: d8363765d73368208aa92ee3729ee16b5d4a1b1a5b193872e085174d8aa2d7de

Contents?: true

Size: 726 Bytes

Versions: 1

Compression:

Stored size: 726 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/string/basename.rb
#
# Extracted Tue Jun 06 09:30:19 EDT 2006
# Unit Tools Reap Test Extractor
#

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


  require 'test/unit'

  class TCString < Test::Unit::TestCase

    def test_001
      assert_equal( "Unit", "Test::Unit".basename )
    end

    def test_002
      a =  "Down::Bottom"
      assert_raises( ArgumentError ) { a.basename(1) }
    end

    def test_003
      a =  "Down::Bottom"
      assert_equal( "Bottom", a.basename )
    end

    def test_004
      b =  "Further::Down::Bottom"
      assert_equal( "Bottom", b.basename )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.4.1 test/lib/facets/core/string/test_basename.rb