mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user