Sha256: ca44748a490524acf906a8295a2367b8c65747639be1be3cf8941c8dbbb712f7

Contents?: true

Size: 879 Bytes

Versions: 1

Compression:

Stored size: 879 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/file/self/sanitize.rb
#
# Extracted Fri Sep 08 20:20:32 EDT 2006
# Unit Tools Reap Test Extractor
#

require 'facets/core/file/self/sanitize.rb'


  require 'test/unit'

  class TCFile < Test::Unit::TestCase

    def test_01_001
      assert_equal( "This_is_a_test", File.sanitize('This is a test') )
    end

    def test_01_001
      assert_equal( "test", File.sanitize('This\is\test') )
    end

    def test_01_001
      assert_equal( "test", File.sanitize('This/is/test') )
    end

    def test_01_001
      assert_equal( "te_____st", File.sanitize('This/te#$#@!st') )
    end

    def test_01_001
      assert_equal( "_.", File.sanitize('.') )
    end

    def test_01_001
      assert_equal( "_....", File.sanitize('....') )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.7.46 test/lib/facets/core/file/self/test_sanitize.rb