From d11925b60717641a85034fd889ba9aa52766a6ce Mon Sep 17 00:00:00 2001 From: Fabien Chaix Date: Wed, 18 May 2022 00:15:19 +0300 Subject: [PATCH] Fix cosmetics --- src/kernel/resource/profile/Profile_test.cpp | 6 ++---- src/kernel/resource/profile/StochasticDatedValue.hpp | 2 -- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/kernel/resource/profile/Profile_test.cpp b/src/kernel/resource/profile/Profile_test.cpp index 6996ec728a..4834950c1e 100644 --- a/src/kernel/resource/profile/Profile_test.cpp +++ b/src/kernel/resource/profile/Profile_test.cpp @@ -151,9 +151,8 @@ TEST_CASE("kernel::profile: Resource profiles, defining the external load", "ker using simgrid::kernel::profile::Distribution; std::vector got = trace2selist("STOCHASTIC\n" "DET 0 UNIF 10 20"); - + std::vector want; - //want.emplace_back(0, -1); // The initial fake event want.emplace_back(Distribution::DET, std::vector{0}, Distribution::UNIF, std::vector{10, 20}); REQUIRE(want == got); @@ -167,9 +166,8 @@ TEST_CASE("kernel::profile: Resource profiles, defining the external load", "ker "NORMAL 25 10 DET 3\n" "UNIF 10 20 NORMAL 25 10\n" "DET 5 UNIF 5 25"); - + std::vector want; - // want.emplace_back(0, -1); want.emplace_back(Distribution::DET, std::vector{0}, Distribution::DET, std::vector{4}); want.emplace_back(Distribution::NORM, std::vector{25, 10}, Distribution::DET, std::vector{3}); want.emplace_back(Distribution::UNIF, std::vector{10, 20}, Distribution::NORM, std::vector{25, 10}); diff --git a/src/kernel/resource/profile/StochasticDatedValue.hpp b/src/kernel/resource/profile/StochasticDatedValue.hpp index f6d55b46bb..27203b287e 100644 --- a/src/kernel/resource/profile/StochasticDatedValue.hpp +++ b/src/kernel/resource/profile/StochasticDatedValue.hpp @@ -36,8 +36,6 @@ private: static double draw(Distribution law, std::vector params); }; - - } // namespace simgrid::kernel::profile std::vector trace2selist( const char* c_str ); -- 2.20.1