Sha256: 4815a0d78f55c56686293813e8db0c7208febe4b8a2badf53794438fbc7c1337

Contents?: true

Size: 508 Bytes

Versions: 13

Compression:

Stored size: 508 Bytes

Contents

require 'facets/string/fold.rb'
require 'test/unit'

class Test_String_Fold < 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

13 entries across 13 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/string/test_fold.rb
facets-2.8.3 test/core/string/test_fold.rb
facets-2.8.2 test/core/string/test_fold.rb
facets-2.8.1 test/core/string/test_fold.rb
facets-2.8.0 test/core/string/test_fold.rb
facets-2.7.0 test/core/string/test_fold.rb
facets-2.6.0 test/core/string/test_fold.rb
facets-2.4.4 test/core/string/test_fold.rb
facets-2.4.3 test/core/string/test_fold.rb
facets-2.5.1 test/core/string/test_fold.rb
facets-2.5.0 test/core/string/test_fold.rb
facets-2.4.5 test/core/string/test_fold.rb
facets-2.5.2 test/core/string/test_fold.rb