Sha256: a36e44de9e0db15d8d14ef8739ccfbf7d89cdfff5418d6721fa35cc77e6ef362

Contents?: true

Size: 592 Bytes

Versions: 4

Compression:

Stored size: 592 Bytes

Contents

require "test/unit"
require File.expand_path(File.join(File.dirname(__FILE__), "../lib/amp"))

class TestSupport < Test::Unit::TestCase
  def test_split_newlines
    assert_equal(["hi there what's\n", "\r up there\r kids\n", " lol"], "hi there what's\n\r up there\r kids\n lol".split_newlines)
  end
  
  def test_absolute
    root = "/root"
    paths = { "/Monkey"  => "/Monkey",
              "asd/asdf" => "/root/asd/asdf",
              "bllop"    => "/root/bllop"
            }
    
    paths.each do |path, result|
      assert_equal result, path.absolute(root)
    end
  end
  
end



Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
amp-0.5.2 test/test_support.rb
amp-0.5.1 test/test_support.rb
amp-pure-0.5.0 test/test_support.rb
amp-0.5.0 test/test_support.rb