A bit of cleanup and refinement before refactoring.
This commit is contained in:
parent
e86d474c7c
commit
10c152a1c2
5 changed files with 63 additions and 37 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue