Sha256: ade0e6c4ec2c416ca8992e268f00283058bb050d4bafbd2eda37f3bb16053f8f

Contents?: true

Size: 635 Bytes

Versions: 13

Compression:

Stored size: 635 Bytes

Contents

# encoding: utf-8

###
#  to run use
#     ruby -I ./lib -I ./test test/test_outline_reader.rb


require 'helper'

class TestOutlineReader < MiniTest::Test

  def test_parse
    outline = SportDb::OutlineReader.parse( <<TXT )
=============================
= ÖFB Cup 2011/12
=============================

FC Red Bull Salzburg      ## Bundesliga
FK Austria Wien
TXT

    pp outline

    assert_equal 3, outline.size

    assert_equal [:h1, 'ÖFB Cup 2011/12'],       outline[0]
    assert_equal [:l,  'FC Red Bull Salzburg'],  outline[1]
    assert_equal [:l,  'FK Austria Wien'],       outline[2]
  end

end # class TestOutlineReader

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
sportdb-formats-0.4.0 test/test_outline_reader.rb
sportdb-formats-0.3.0 test/test_outline_reader.rb
sportdb-formats-0.2.1 test/test_outline_reader.rb
sportdb-formats-0.2.0 test/test_outline_reader.rb
sportdb-formats-0.1.7 test/test_outline_reader.rb
sportdb-formats-0.1.6 test/test_outline_reader.rb
sportdb-formats-0.1.5 test/test_outline_reader.rb
sportdb-formats-0.1.4 test/test_outline_reader.rb
sportdb-formats-0.1.3 test/test_outline_reader.rb
sportdb-formats-0.1.2 test/test_outline_reader.rb
sportdb-formats-0.1.1 test/test_outline_reader.rb
sportdb-formats-0.1.0 test/test_outline_reader.rb
sportdb-formats-0.0.1 test/test_outline_reader.rb