Browse Source

poorly written test fixed

devel
Ludovic 'Archivist' Lagouardette 4 years ago
parent
commit
7bbdf7b2fc
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      tests/pair_test.cpp

+ 1
- 3
tests/pair_test.cpp View File

@ -17,7 +17,6 @@ struct pair_test : public test_scaffold {
virtual int run() { virtual int run() {
cheap_rand setter(seed); cheap_rand setter(seed);
cheap_rand getter(seed);
gp::pair<double, std::string> v{0, "zero"}; gp::pair<double, std::string> v{0, "zero"};
bool result = true; bool result = true;
@ -25,9 +24,8 @@ struct pair_test : public test_scaffold {
for(int i = 0 ; i < 100; i++) for(int i = 0 ; i < 100; i++)
{ {
auto a = setter(); auto a = setter();
auto b = setter();
v = gp::pair(a, std::to_string(a)); v = gp::pair(a, std::to_string(a));
result = gp::pair<double, std::string>(b, std::to_string(b)) == v ? result : false;
result = gp::pair<double, std::string>(a, std::to_string(a)) == v ? result : false;
} }
return !result; return !result;

Loading…
Cancel
Save