Sha256: 9290ead2840b9dd3174a52b81adaf9063bf6a412e7e081cbf4bfea57dc57aafe
Contents?: true
Size: 746 Bytes
Versions: 1
Compression:
Stored size: 746 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facet/string/fold.rb # # Extracted Wed Jan 25 11:25:39 EST 2006 # Unit Tools Reap Test Extractor # require 'facet/string/fold.rb' require 'test/unit' class TCString < Test::Unit::TestCase def test_fold_1 s = "This is\na test.\n\nIt clumps\nlines of text." o = "This is a test.\n\nIt clumps lines of text." assert_equal( o, s.fold ) end def test_fold_2 s = "This is\na test.\n\n This is pre.\n Leave alone.\n\nIt clumps\nlines of text." o = "This is a test.\n\n This is pre.\n Leave alone.\n\nIt clumps lines of text." assert_equal( o, s.fold(true) ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.0.3 | packages/core/test/lib/facet/string/test_fold.rb |