Sha256: 5fb9ac5f0337b979c0d5091fca06779342b0b36c97122da8ac349c34925154bb
Contents?: true
Size: 589 Bytes
Versions: 8
Compression:
Stored size: 589 Bytes
Contents
# encoding: utf-8 ### # to run use # ruby -I ./lib -I ./test test/test_match_worldcup.rb require 'helper' class TestMatchWorld < MiniTest::Test def test_parse txt, exp, teams = read_test( 'match/worldcup_2018_finals.txt' ) start = Date.new( 2018, 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 TestMatchWorld
Version data entries
8 entries across 8 versions & 1 rubygems