Sha256: 41fe977986d8452df9776bea2cbc5ee455eede4c97ab1897c0b6e3120273bab9
Contents?: true
Size: 867 Bytes
Versions: 1
Compression:
Stored size: 867 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facet/file/self/sanitize.rb # # Extracted Wed Jan 25 11:25:39 EST 2006 # Unit Tools Reap Test Extractor # require 'facet/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.0.3 | packages/core/test/lib/facet/file/self/test_sanitize.rb |