Sha256: db8d4f8cb712e8e09098f7bc44757c88a655636cc1d0e5fbb4819c04e88ccc5c

Contents?: true

Size: 572 Bytes

Versions: 8

Compression:

Stored size: 572 Bytes

Contents

# encoding: utf-8

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


require 'helper'


class TestMatchEuro < MiniTest::Test

  def test_parse
    txt, exp, teams = read_test( 'match/euro_2016.txt' )

    start = Date.new( 2016, 1, 1 )

    SportDb::Import.config.lang = 'en'

    parser = SportDb::MatchParser.new( txt, teams, start )
    matches, rounds, groups  = parser.parse

    pp rounds
    pp groups
    pp matches[-1]     ## only dump last record for now
  end   # method test_parse
end   # class TestMatchEuro

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sportdb-formats-1.1.2 test/test_match_euro.rb
sportdb-formats-1.1.1 test/test_match_euro.rb
sportdb-formats-1.1.0 test/test_match_euro.rb
sportdb-formats-1.0.6 test/test_match_euro.rb
sportdb-formats-1.0.5 test/test_match_euro.rb
sportdb-formats-1.0.4 test/test_match_euro.rb
sportdb-formats-1.0.3 test/test_match_euro.rb
sportdb-formats-1.0.2 test/test_match_euro.rb