Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve assert_samples_in test failure output
=== Before === > assert all_in, print_samples(samples) E AssertionError: None E assert False test_utils.py:37: AssertionError ------------------------------------------------- Captured stdout call ------------------------------------------------- Using seed 2353196025 [211106778865792] {211106778865792, 211106242027648, 70369290510464, 211106778898560} ['h1', 'f2', 'g2', 'e3', 'h3', 'f4', 'g6', 'h6']: 476 ['h1', 'f2', 'g2', 'h2', 'e3', 'h3', 'f4', 'g6', 'h6']: 17 ['h1', 'f2', 'g2', 'h2', 'e3', 'h3', 'g6', 'h6']: 5 ['h1', 'f2', 'g2', 'e3', 'h3', 'f4', 'g6']: 2 === After === > assert all_in, message("Unexpected bitboard in samples") E AssertionError: Unexpected bitboard in samples E assert False test_utils.py:47: AssertionError ------------------------------------------------- Captured stdout call ------------------------------------------------- Using seed 3713866156 Expected bitboards: [f2 g2 h2 g3 d6 f7 g7 h7 b8 d8 h8] Sample distribution: 493 [f2 g2 h2 g3 d6 f7 g7 h7 b8 d8 h8] 7 [f2 g2 h2 g3 d6 f7 g7 h7 b8 h8]
- Loading branch information