You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
std::fs::read_to_string(snapshot_path).expect("Failed to read expected solution file.");
273
299
274
-
let actual_solutions = output
275
-
.parse::<Solutions<ORDERED>>()
276
-
.expect("Valid solution");
300
+
let actual_solutions = output
301
+
.parse::<Solutions<ORDERED>>()
302
+
.expect("Valid solution");
277
303
278
-
let expected_solutions = expected_file
279
-
.parse::<Solutions<ORDERED>>()
280
-
.expect("Valid solution");
304
+
let expected_solutions = expected_file
305
+
.parse::<Solutions<ORDERED>>()
306
+
.expect("Valid solution");
307
+
308
+
assert_eq!(actual_solutions, expected_solutions,"Did not find the elements {:?} in the expected solution and the expected solution contained {:?} while the actual solution did not.", actual_solutions.assignments.iter().filter(|solution| !expected_solutions.assignments.contains(solution)).collect::<Vec<_>>(), expected_solutions.assignments.iter().filter(|solution| !actual_solutions.assignments.contains(solution)).collect::<Vec<_>>());
309
+
}
281
310
282
-
assert_eq!(actual_solutions, expected_solutions,"Did not find the elements {:?} in the expected solution and the expected solution contained {:?} while the actual solution did not.", actual_solutions.assignments.iter().filter(|solution| !expected_solutions.assignments.contains(solution)).collect::<Vec<_>>(), expected_solutions.assignments.iter().filter(|solution| !actual_solutions.assignments.contains(solution)).collect::<Vec<_>>());
0 commit comments