Sha256: 931033acbc776b978b76b1715283825fbc41a5b97fbbd13c191cdc628941c6dc

Contents?: true

Size: 250 Bytes

Versions: 5

Compression:

Stored size: 250 Bytes

Contents

require 'facets/string/lines'
require 'test/unit'

class TC_String_Lines < Test::Unit::TestCase

  # Ruby 1.9 defined #lines to keep the newline character. Yuk!
  def test_lines
    assert_equal( ["a\n","b\n","c"], "a\nb\nc".lines.to_a )
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

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