Sha256: 330df8056473fd4329b3c75785c8cff4ce5f7c5eec10b959fbe5689ea007653f

Contents?: true

Size: 276 Bytes

Versions: 6

Compression:

Stored size: 276 Bytes

Contents

require 'test/unit'
require 'facets/string/unfold'

class TC_String_Unfold < Test::Unit::TestCase

  def test_unfold
    str = "This is a test of\nparagraph folding."
    res = str.unfold
    exp = "This is a test of paragraph folding."
    assert_equal(exp, res)
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/string/test_unfold.rb
facets-2.8.3 test/core/string/test_unfold.rb
facets-2.8.2 test/core/string/test_unfold.rb
facets-2.8.1 test/core/string/test_unfold.rb
facets-2.8.0 test/core/string/test_unfold.rb
facets-2.7.0 test/core/string/test_unfold.rb