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