#begintest koth
#beginconfig
division a a.t
division b b.t
config gibson = 1
config max_rounds = 4
config prize_bands{'A'} = [1,2];
config prize_bands{'B'} = [1,2];
config colour = 'no'
#endconfig
#beginifile a.t
Chew, John 1800    
Chew, Kristen 1300 
Chew, Jamie 500    
Chew, Liam 0       
#endifile
#beginifile b.t
Player, A 1900 4 3 2 ; 400 400 400
Player, B 1800 3 4 1 ; 302 300 300
Player, C 1700 2 1 4 ; 201 200 200
Player, D 1600 1 2 3 ; 100 500 100
#endifile
#begincommands
debug CBPF 0
debug GIB 0
debug GRT 0
koth 0 0 a
koth 0 0 a
koth 0 0 a
sp 3 a
koth 0 0 a
koth 1 0 a
koth 1 0 a
koth 1 3 b
rat b
sp 4 b
q
#endcommands
#beginstdout
Division A Round 3 Ranked Pairings

Board Players
   1  Chew, John (A1) vs. Chew, Liam (A4).
   2  Chew, Kristen (A2) vs. Chew, Jamie (A3).
Division B Round 3 Ratings

Rnk Won-Lost Spread OldR NewR +-R Player         Last Game
  1 3.0-0.0    +600 1900 1918 +18 Player, A (B1) W:400-300:B2
  2 1.0-2.0    -199 1800 1787 -13 Player, B (B2) L:300-400:B1
  3 1.0-2.0    -200 1600 1599  -1 Player, D (B4) L:100-200:B3
  4 1.0-2.0    -201 1700 1693  -7 Player, C (B3) W:200-100:B4
Division B Round 4 Ranked Pairings

Board Players
   1  Player, A (B1) vs. Player, C (B3) repeat.
   2  Player, B (B2) vs. Player, D (B4) repeat.
#endstdout
#beginstderr
Error: Pairings failed. [epfail]
Error: You cannot compute pairings for Round 5 because config max_rounds = 4. [ebigrd]
#endstderr
#endtest
