Sha256: f024d2b98417cb966f1378f5745bfb62ff93bd2430c6fd930828be814723b23b

Contents?: true

Size: 308 Bytes

Versions: 5

Compression:

Stored size: 308 Bytes

Contents

require 'facets/string/newlines'
require 'test/unit'

class TC_String_NewLines < Test::Unit::TestCase

  # Since Ruby 1.9 defined #lines to keep the newline character,
  # we have defined #newlines to leave them out.
  def test_newlines
    assert_equal( ["a","b","c"], "a\nb\nc".newlines.to_a )
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

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