Sha256: 588bbb4df97363bf6c9c0c815651625fc6d78e3cd719d48326633156937e76f0

Contents?: true

Size: 534 Bytes

Versions: 8

Compression:

Stored size: 534 Bytes

Contents

# encoding: utf-8

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


require 'helper'


class TestMatchEng < MiniTest::Test

  def test_eng
    txt, exp, teams = read_test( 'match/eng.txt' )

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

    start = Date.new( 2017, 7, 1 )

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

    pp rounds
    pp matches[-1]   ## only dump last record for now
  end   # method test_end
end   # class TestMatchEng

Version data entries

8 entries across 8 versions & 1 rubygems

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