Sha256: ac4cbfbf269f755053be96d0a6c6f9461ab57912c29841bf93315dbc88b1f375

Contents?: true

Size: 251 Bytes

Versions: 4

Compression:

Stored size: 251 Bytes

Contents

covers 'facets/string/newlines'

testcase String do

  # Since Ruby 1.9 defined #lines to keep the newline character,
  # we have defined #newlines to leave them out.
  unit :newlines do
    "a\nb\nc".newlines.to_a.assert == ["a","b","c"]
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
facets-2.9.1 test/core/string/test_newlines.rb
facets-2.9.0 test/core/string/test_newlines.rb
facets-2.9.0.pre.2 test/core/string/test_newlines.rb
facets-2.9.0.pre.1 test/core/string/test_newlines.rb