summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-10-08 09:01:43 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-10-08 09:01:43 +0200
commitbfe9becfca9e789bf653c4bb8e92917acac04218 (patch)
treec96d69127a058db737164ed4bb88d5a4d96163ea /test
parent05f426b934baa641cd847fd3fc06d7ac446cf8e9 (diff)
a
Diffstat (limited to 'test')
-rw-r--r--test/dijkstra.cpp2
-rw-r--r--test/path-search.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/dijkstra.cpp b/test/dijkstra.cpp
index 1db3ff22..817f944a 100644
--- a/test/dijkstra.cpp
+++ b/test/dijkstra.cpp
@@ -15,7 +15,7 @@ void bench_run(StringView name, F&& fun)
using clock = high_resolution_clock;
const auto t0 = clock::now();
fun();
- for (int i = 0; i < 10; i++)
+ for (int i = 0; i < 1000; i++)
fun();
const auto tm = clock::now() - t0;
Debug{} << "test" << name << "took" << duration_cast<milliseconds>(tm).count() << "ms.";
diff --git a/test/path-search.cpp b/test/path-search.cpp
index b2a50524..20645c63 100644
--- a/test/path-search.cpp
+++ b/test/path-search.cpp
@@ -13,7 +13,7 @@ namespace {
template<typename T> using bbox = path_search::bbox<T>;
using pred = path_search::pred;
-constexpr auto div = path_search::subdivide_factor;
+constexpr auto div = path_search::div_factor;
constexpr auto min_size = path_search::min_size;
constexpr bbox<int> get_value(Vector2ub sz, Vector2ub div, rotation r)