summaryrefslogtreecommitdiff
path: root/main/tests/test_astar.cpp
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2020-07-13 14:13:38 -0400
committerAaron Franke <arnfranke@yahoo.com>2020-07-13 14:14:11 -0400
commit99864393525a8a61afc4de384650930ef8d3c70f (patch)
treeeeeb6ccfe020a818706173727743296acdf4815f /main/tests/test_astar.cpp
parentd8b65461e395c6b1f1a06534017294c0a7fe86d8 (diff)
Commit other files changed by file_format.sh
Diffstat (limited to 'main/tests/test_astar.cpp')
-rw-r--r--main/tests/test_astar.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/tests/test_astar.cpp b/main/tests/test_astar.cpp
index fe335589b0..cb5fcfe37b 100644
--- a/main/tests/test_astar.cpp
+++ b/main/tests/test_astar.cpp
@@ -102,9 +102,9 @@ bool test_add_remove() {
a.connect_points(1, 3, true);
a.connect_points(1, 4, false);
- ok = ok && (a.are_points_connected(2, 1) == true);
- ok = ok && (a.are_points_connected(4, 1) == true);
- ok = ok && (a.are_points_connected(2, 1, false) == true);
+ ok = ok && (a.are_points_connected(2, 1));
+ ok = ok && (a.are_points_connected(4, 1));
+ ok = ok && (a.are_points_connected(2, 1, false));
ok = ok && (a.are_points_connected(4, 1, false) == false);
a.disconnect_points(1, 2, true);
@@ -179,7 +179,7 @@ bool test_add_remove() {
if (Math::rand() % 2 == 1) {
// Add a (possibly existing) directed edge and confirm connectivity
a.connect_points(u, v, false);
- ok = ok && (a.are_points_connected(u, v, false) == true);
+ ok = ok && (a.are_points_connected(u, v, false));
} else {
// Remove a (possibly nonexistent) directed edge and confirm disconnectivity
a.disconnect_points(u, v, false);