#begintest dryrun
#beginconfig
division a a.t
config max_div_rounds{'A'} = 5
config colour = 'no'
config track_firsts = 1
config assign_firsts = 0
perl srand 123
#endconfig
#beginifile a.t
Chew, John 1800    
Chew, Kristen 1300 
Chew, Jamie 500    
Chew, Liam 0       
#endifile
#begincommands
dryrun
q
#endcommands
#beginstdout
Round 1 Pairings

Board Players
   1  Chew, John (#1) *draws* vs. Chew, Liam (#4).
   2  Chew, Kristen (#2) *draws* vs. Chew, Jamie (#3).
Round 2 Pairings

Board Players
   1  Chew, John (#1) vs. Chew, Jamie (#3).
   2  Chew, Kristen (#2) vs. Chew, Liam (#4).
Round 3 Pairings

Board Players
   1  Chew, John (#1) vs. Chew, Kristen (#2).
   2  Chew, Jamie (#3) vs. Chew, Liam (#4).
Chew, John (#1): 491
Chew, Kristen (#2): 302
Chew, Jamie (#3): 331
Chew, Liam (#4): 276
Round 1 Ratings

Rnk Won-Lost Spread OldR NewR +-R Player             Last         
  1 1.0-0.0   +215  1800 1801  +1 Chew, John (#1)    2W:491-276:#4
  2 1.0-0.0    +29   500  535 +35 Chew, Jamie (#3)   1W:331-302:#2
  3 0.0-1.0    -29  1300 1281 -19 Chew, Kristen (#2) 2L:302-331:#3
  4 0.0-1.0   -215     0 1334     Chew, Liam (#4)    1L:276-491:#1
Chew, John (#1): 491 352
Chew, Kristen (#2): 302 451
Chew, Jamie (#3): 331 188
Chew, Liam (#4): 276 315
Round 2 Ratings

Rnk Won-Lost Spread OldR NewR +-R Player             Last         
  1 2.0-0.0   +379  1800 1801  +1 Chew, John (#1)    1W:352-188:#3
  2 1.0-1.0   +107  1300 1285 -15 Chew, Kristen (#2) 1W:451-315:#4
  3 1.0-1.0   -135   500  530 +30 Chew, Jamie (#3)   2L:188-352:#1
  4 0.0-2.0   -351     0 1084     Chew, Liam (#4)    2L:315-451:#2
Chew, John (#1): 491 352 335
Chew, Kristen (#2): 302 451 325
Chew, Jamie (#3): 331 188 147
Chew, Liam (#4): 276 315 432
Round 3 Ratings

Rnk Won-Lost Spread OldR NewR +-R Player             Last         
  1 3.0-0.0   +389  1800 1801  +1 Chew, John (#1)    2W:335-325:#2
  2 1.0-2.0    +97  1300 1284 -16 Chew, Kristen (#2) 1L:325-335:#1
  3 1.0-2.0    -66     0 1078     Chew, Liam (#4)    2W:432-147:#3
  4 1.0-2.0   -420   500  524 +24 Chew, Jamie (#3)   1L:147-432:#4
Debug: [CP] Beginning Chew Pairings for 4 players in round 4 based on round 3.
Debug: [CP] Number of players still unpaired: 4
Debug: [GIB] PairAllGibsons(4,2,2,1)
Debug: [GIB] Gibson-equivalent ranks: 1 starting at 1
Debug: [GIB] Gibsons found: 0
Debug: [CP] Contending rnks 1-1?  Plyrs left: 4.  Rds left: 2 as of Rd 3.
Debug: [CP] Now=>Fnl Wins Sprd Player (theoretical best finishes)
Debug: [GIB]   1=>  1  5.0 +739 Chew, John #1
Debug: [GIB]   2=>  2  3.0 +447 Chew, Kristen #2
Debug: [GIB]   3=>  2  3.0 +284 Chew, Liam #4
Debug: [GIB]   4=>  2  3.0  -70 Chew, Jamie #3
Assertion failed: only one contender
Debug: [CP] There are 1 contenders.
Debug: [CP] Adding back last two players, their repeats=1
Debug: [CP] Flight can be paired with repeats=1.
Debug: [CP] Everyone is a contender, will pair Swiss.
Debug: [CP] 0 second(s) runtime
Round 4 Pairings

Board Players
   1  Chew, John (#1) *starts* vs. Chew, Kristen (#2).
   2  Chew, Liam (#4) *starts* vs. Chew, Jamie (#3).
Debug: [CP] 4 players and 1 round(s) left
Chew, John (#1): 491 352 335 498
Chew, Kristen (#2): 302 451 325 421
Chew, Jamie (#3): 331 188 147 253
Chew, Liam (#4): 276 315 432 406
Round 4 Ratings

Rnk Won-Lost Spread OldR NewR +-R Player             Last         
  1 4.0-0.0   +466  1800 1801  +1 Chew, John (#1)    1W:498-421:#2
  2 2.0-2.0    +87     0 1025     Chew, Liam (#4)    1W:406-253:#3
  3 1.0-3.0    +20  1300 1282 -18 Chew, Kristen (#2) 2L:421-498:#1
  4 1.0-3.0   -573   500  519 +19 Chew, Jamie (#3)   2L:253-406:#4
Debug: [CP] 4 players and 1 round(s) left
Debug: [CP] Beginning Chew Pairings for 4 players in round 5 based on round 4.
Debug: [CP] Number of players still unpaired: 4
Debug: [GIB] PairAllGibsons(4,3,1,1)
Debug: [GIB] Gibson-equivalent ranks: 1 starting at 1
Debug: [GIB] Gibsons found: 1
Debug: [GIB] 1 gibson.
Debug: [GIB] Pairing one gibson from 4 players, lpr=1.
Debug: [GIB]   1=>  1  5.0 +716 Chew, John #1
Debug: [GIB]   2=>  2  3.0 +337 Chew, Liam #4
Debug: [GIB]   3=>  2  2.0 +270 Chew, Kristen #2
Debug: [GIB]   4=>  3  2.0 -323 Chew, Jamie #3
Debug: [GIB] ... victim (rep=1) = Chew, Jamie (#3)
Debug: [GIB] ... better victim (rep 1=1) = Chew, Liam (#4)
Debug: [GIB] Gibson-equivalent ranks: 1 starting at 3
Debug: [GIB] Gibsons found: 0
Debug: [CP] Contending rnks 2-4?  Plyrs left: 2.  Rds left: 1 as of Rd 4.
Debug: [CP] Now=>Fnl Wins Sprd Player (theoretical best finishes)
Debug: [GIB]   1=>  1  2.0 +270 Chew, Kristen #2
Debug: [GIB]   2=>  1  2.0 -323 Chew, Jamie #3
Debug: [CP] There are 2 contenders.
Debug: [CP] Flight can be paired with repeats=1.
Debug: [CP] Everyone is a contender, will pair Swiss.
Debug: [CP] 0 second(s) runtime
Round 5 Pairings

Board Players
   1  Chew, John (#1) *draws* vs. Chew, Liam (#4).
   2  Chew, Kristen (#2) *draws* vs. Chew, Jamie (#3).
Chew, John (#1): 491 352 335 498 363
Chew, Kristen (#2): 302 451 325 421 429
Chew, Jamie (#3): 331 188 147 253 341
Chew, Liam (#4): 276 315 432 406 268
Round 5 Ratings

Rnk Won-Lost Spread OldR NewR +-R Player             Last         
  1 5.0-0.0   +561  1800 1801  +1 Chew, John (#1)    1W:363-268:#4
  2 2.0-3.0   +108  1300 1284 -16 Chew, Kristen (#2) 1W:429-341:#3
  3 2.0-3.0     -8     0 1108     Chew, Liam (#4)    2L:268-363:#1
  4 1.0-4.0   -661   500  519 +19 Chew, Jamie (#3)   2L:341-429:#2
#endstdout
#beginstderr
Error: Can't automatically pair Round 4 based on Round 0. [eacpbadr]
Error: No pairings yet for Division A Round 4. [enopryet]
Error: Can't automatically pair Round 4 based on Round 1. [eacpbadr]
Error: No pairings yet for Division A Round 4. [enopryet]
Error: If you are sure you want to pair Round 4 based on Round 2, please specify config session_breaks. [eacpnsb]
Error: No pairings yet for Division A Round 4. [enopryet]
Warning: You should specify config prize_bands to use this command. [wwant_prize_bands]
Error: If you are sure you want to pair Round 5 based on Round 3, please specify config session_breaks. [eacpnsb]
Error: No pairings yet for Division A Round 5. [enopryet]
#endstderr
#endtest
