Sha256: 69782cf9f196f37ac3e1e6e42e73e9d780c0009fd96ec1034109c84c531ac270

Contents?: true

Size: 245 Bytes

Versions: 16

Compression:

Stored size: 245 Bytes

Contents

require 'facets/string/line_wrap'
require 'test/unit'

class TestStringLineWrap < Test::Unit::TestCase

  def test_line_wrap
    assert_equal "abc\n123\n", "abc123".line_wrap(3)
    assert_equal "abcd\n123\n", "abcd123".line_wrap(4)
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

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