From 7bbdf7b2fc5dafe19b6c30ac70289cd203cff6cd Mon Sep 17 00:00:00 2001 From: Ludovic 'Archivist' Lagouardette Date: Wed, 9 Sep 2020 00:21:57 +0200 Subject: [PATCH] poorly written test fixed --- tests/pair_test.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/pair_test.cpp b/tests/pair_test.cpp index ac3b139..5548488 100644 --- a/tests/pair_test.cpp +++ b/tests/pair_test.cpp @@ -17,7 +17,6 @@ struct pair_test : public test_scaffold { virtual int run() { cheap_rand setter(seed); - cheap_rand getter(seed); gp::pair v{0, "zero"}; bool result = true; @@ -25,9 +24,8 @@ struct pair_test : public test_scaffold { for(int i = 0 ; i < 100; i++) { auto a = setter(); - auto b = setter(); v = gp::pair(a, std::to_string(a)); - result = gp::pair(b, std::to_string(b)) == v ? result : false; + result = gp::pair(a, std::to_string(a)) == v ? result : false; } return !result;