Sha256: 62e50cb61cef9e2b8757334387e4f6d3aeebe157c59aa5bd8f89076a1ff6f905

Contents?: true

Size: 581 Bytes

Versions: 8

Compression:

Stored size: 581 Bytes

Contents

# encoding: utf-8

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


require 'helper'


class TestMatchChamps < MiniTest::Test

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

    start = Date.new( 2017, 7, 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 TestMatchChamps

Version data entries

8 entries across 8 versions & 1 rubygems

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