Sha256: b06721fd95e2aef934e5864b62ff978b1c1441f8b2d3cf760a4c380eb41f6de5
Contents?: true
Size: 865 Bytes
Versions: 1
Compression:
Stored size: 865 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/nano/file/self/sanitize.rb # # Extracted Fri Oct 28 14:20:18 EDT 2005 # Unit Tools Reap Test Extractor # require 'nano/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-0.9.0 | test/lib/nano/file/self/test_sanitize.rb |