Sha256: 9755cbd0674d46a63f89729d2c158d218b640c80354822e745bafe2a4bf8eb0b

Contents?: true

Size: 784 Bytes

Versions: 3

Compression:

Stored size: 784 Bytes

Contents

# encoding: utf-8

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


require 'helper'


class TestMatchAutoRelegation < MiniTest::Test

  def test_rel
    txt = <<TXT
Hinspiel
[31.5.]
  SC Wiener Neustadt     0-2  SKN St. Pölten

Rückspiel
[3.6.]
  SKN St. Pölten         1-1  SC Wiener Neustadt
TXT

    start =  Date.new( 2017, 7, 1 )
    SportDb::Import.config.lang = 'de'

    teams, rounds, groups, round_defs, group_defs = SportDb::AutoConfParser.parse( txt, start: start )

    puts "teams:"
    pp teams
    puts "rounds:"
    pp rounds
    puts "groups:"
    pp groups
    puts "round defs:"
    pp round_defs
    puts "group defs:"
    pp group_defs
  end

end   # class TestMatchAutoRelegation

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sportdb-formats-1.1.2 test/test_match_auto_relegation.rb
sportdb-formats-1.1.1 test/test_match_auto_relegation.rb
sportdb-formats-1.1.0 test/test_match_auto_relegation.rb