From b89440d23ec0a9462208fbe6d933663a73872b0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20KUBLER?= <gregoire.kubler@proton.me> Date: Tue, 19 Mar 2024 15:13:25 +0100 Subject: [PATCH] feat : schudelr test : reduced test number, increased graph size --- unit_tests/scheduler/Test_Scheduler.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/unit_tests/scheduler/Test_Scheduler.cpp b/unit_tests/scheduler/Test_Scheduler.cpp index 32f5eb001..66e0d4aef 100644 --- a/unit_tests/scheduler/Test_Scheduler.cpp +++ b/unit_tests/scheduler/Test_Scheduler.cpp @@ -30,9 +30,9 @@ using namespace Aidge; TEST_CASE("randomScheduling", "[Scheduler][randomGen]") { - const size_t nbTests = 30; + const size_t nbTests = 10; size_t nbUnicity = 0; - std::uniform_int_distribution<std::size_t> nb_nodes_dist(1, 100); + std::uniform_int_distribution<std::size_t> nb_nodes_dist(70, 100); for (int test = 0; test < nbTests; ++test) { std::random_device rd; @@ -42,7 +42,8 @@ TEST_CASE("randomScheduling", "[Scheduler][randomGen]") { RandomGraph randGraph; randGraph.acyclic = true; const auto g1 = std::make_shared<GraphView>("g1"); - const size_t nb_nodes = nb_nodes_dist(gen); + // const size_t nb_nodes = nb_nodes_dist(gen); + const size_t nb_nodes = 85; const bool unicity1 = g1->add(randGraph.gen(seed, nb_nodes)); g1->save("test_graph_"+std::to_string(test)); -- GitLab