A bit of cleanup and refinement before refactoring.

This commit is contained in:
Zed A. Shaw 2024-12-01 08:08:06 -05:00
parent e86d474c7c
commit 10c152a1c2
5 changed files with 63 additions and 37 deletions

View file

@ -22,6 +22,8 @@ TEST_CASE("dijkstra algo test", "[map]") {
test["walls"],
test["limit"]);
REQUIRE(map.INVARIANT());
map.make_paths();
Matrix &paths = map.paths();
@ -31,6 +33,7 @@ TEST_CASE("dijkstra algo test", "[map]") {
dump_map("RESULT", paths);
}
REQUIRE(map.INVARIANT());
REQUIRE(paths == expected);
}
}