Sha256: f851f64b42566b0f4f7cf5313ef9c9951c4c4cdac697585a2710e990b1792f22
Contents?: true
Size: 507 Bytes
Versions: 3
Compression:
Stored size: 507 Bytes
Contents
require 'facets/string/fold.rb' require 'test/unit' class TestStringWords < 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facets-2.4.0 | test/string/test_fold.rb |
facets-2.4.1 | test/string/test_fold.rb |
facets-2.4.2 | test/core/string/test_fold.rb |