summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-03-28 15:02:03 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-04-04 00:14:45 +0200
commit5e0008adc0019e2d769f3b274d1cf0c120c0b020 (patch)
tree5d37671e6336ee66050898c11e76de9284b41ce3 /test
parente3743cc6717ca7a7a655d9c22e10fe1e8356174a (diff)
implement simplifying A* result path
Diffstat (limited to 'test')
-rw-r--r--test/dijkstra.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dijkstra.cpp b/test/dijkstra.cpp
index f8764292..4d9f2187 100644
--- a/test/dijkstra.cpp
+++ b/test/dijkstra.cpp
@@ -64,7 +64,7 @@ void test_app::test_dijkstra()
fm_assert(!result.is_found());
fm_assert(!result.path().isEmpty());
- fm_assert(result.size() > 4);
+ fm_assert(result.size() > 2);
fm_assert(result.cost() > 1000);
fm_assert(result.cost() < 3000);
fm_assert(result.distance() > min);
@@ -79,7 +79,7 @@ void test_app::test_dijkstra()
fm_assert(result.is_found());
fm_assert(!result.path().isEmpty());
- fm_assert(result.size() > 4);
+ fm_assert(result.size() > 2);
fm_assert(result.cost() > 1000);
fm_assert(result.cost() < 3000);
fm_assert(result.distance() == 0);