Sha256: a99b1a4316f96af62c49a5793a2f1ce9ca4ef4364cd88f99e5c26453cd54f7da

Contents?: true

Size: 467 Bytes

Versions: 29

Compression:

Stored size: 467 Bytes

Contents

require 'bitclust/rrdparser'
require 'test/unit'

class TestRRDParser < Test::Unit::TestCase
  def test_title
    result = BitClust::RRDParser.split_doc <<HERE
= hoge
a
HERE
    assert_equal(["hoge", "a\n"], result)

    result = BitClust::RRDParser.split_doc <<HERE
==foo
a
=hoge
HERE
    assert_equal(["hoge", ""], result)


        result = BitClust::RRDParser.split_doc <<HERE
==[a:hoge]hoge
a
HERE
    assert_equal(["", "==[a:hoge]hoge\na\n"], result)
  end
end

Version data entries

29 entries across 25 versions & 1 rubygems

Version Path
bitclust-core-1.2.5 test/test_rrdparser.rb
bitclust-core-1.2.4 test/test_rrdparser.rb
bitclust-core-1.2.3 test/test_rrdparser.rb
bitclust-core-1.2.2 test/test_rrdparser.rb
bitclust-core-1.2.1 test/test_rrdparser.rb
bitclust-core-1.2.0 test/test_rrdparser.rb
bitclust-core-1.1.1 test/test_rrdparser.rb
bitclust-core-1.1.0 test/test_rrdparser.rb
bitclust-core-1.0.0 test/test_rrdparser.rb
bitclust-core-0.9.6 test/test_rrdparser.rb
bitclust-core-0.9.5 test/test_rrdparser.rb
bitclust-core-0.9.4 test/test_rrdparser.rb
bitclust-core-0.9.3 test/test_rrdparser.rb
bitclust-core-0.9.2 test/test_rrdparser.rb
bitclust-core-0.9.1 test/test_rrdparser.rb
bitclust-core-0.9.0 test/test_rrdparser.rb
bitclust-core-0.8.0 test/test_rrdparser.rb
bitclust-core-0.7.0 test/test_rrdparser.rb
bitclust-core-0.6.0 test/test_rrdparser.rb
bitclust-core-0.5.5 test/test_rrdparser.rb