Sha256: f6689660f6cc7346fdf1825d831f1b3b106fe02289ab7602e14e5de13dd2387b
Contents?: true
Size: 875 Bytes
Versions: 1
Compression:
Stored size: 875 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/file/self/sanitize.rb # # Extracted Fri Feb 16 02:00:36 EST 2007 # Project.rb Test Extraction # 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.8.49 | test/lib/facets/core/file/self/test_sanitize.rb |