Sha256: b1361be4b1c5c9a9aef193e103cc2455745613c64dbdc938138cc02e71371abf

Contents?: true

Size: 758 Bytes

Versions: 1

Compression:

Stored size: 758 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/string/fold.rb
#
# Extracted Tue Jun 06 09:30:19 EDT 2006
# Unit Tools Reap Test Extractor
#

require 'facets/core/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.4.1 test/lib/facets/core/string/test_fold.rb