Sha256: 4a93721beb595b7c3550a2a01640635b859fa7b0a203b295563d1b7d6f092019

Contents?: true

Size: 913 Bytes

Versions: 10

Compression:

Stored size: 913 Bytes

Contents

# encoding: utf-8

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


require 'helper'


class TestMatchAutoEuro < MiniTest::Test

  def test_euro_2016
    txt, exp = read_test( 'match_auto/euro_2016.txt')

    teams, rounds, groups, round_defs, group_defs = parse_auto_conf( txt, lang: 'en' )

     # puts JSON.pretty_generate( { teams: teams,
     #                             rounds: rounds,
     #                             groups: groups } )

     assert_equal exp['teams'],  teams.deep_stringify_keys
     assert_equal exp['rounds'], rounds.deep_stringify_keys
     assert_equal exp['groups'], groups.deep_stringify_keys

    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 TestMatchAutoEuro

Version data entries

10 entries across 10 versions & 1 rubygems

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