Remove tautological test summing empty array

* We test above that the array is truly empty, if that passes the sum is
  superfluous.
This commit is contained in:
baldurk
2021-02-18 13:29:08 +00:00
parent 552af377e6
commit c3769ce569
-6
View File
@@ -154,12 +154,6 @@ TEST_CASE("Test array type", "[basictypes]")
CHECK(test.isEmpty());
CHECK(test.begin() == test.end());
sum = 0;
for(int x : test)
sum += x;
CHECK(sum == 0);
test = {4, 1, 77, 0, 0, 8, 20, 934};
CHECK(test.size() == 8);