Skip to content

Commit ff872a8

Browse files
committed
Fix non-deterministic test output caused by threading
1 parent 16659be commit ff872a8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/pangram_machine.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ mod test {
121121

122122
let mut solutions = vec![];
123123
pangram_machine(&initial_constants, &profiles, |solution| solutions.push(solution));
124+
solutions.sort();
124125

125126
// a b c d e f g h i j k l m n o p q r s t u v w x y z
126127
assert_eq!(solutions[0], [5, 1, 2, 2, 26, 6, 2, 4, 13, 1, 1, 1, 2, 21, 16, 1, 1, 5, 27, 20, 3, 6, 9, 5, 5, 1]); // page 23

0 commit comments

Comments
 (0)