Update doctest
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-03-11 11:06:44 +01:00
parent ba411d011b
commit 2bf12ab879
2 changed files with 4 additions and 4 deletions

View File

@@ -65,7 +65,7 @@ TEST_CASE("Random distribution (max 0, min 1)") {
}
for (size_t i = 0; i < size; i++) {
if (arr[i] != 0)
FAIL("We expected a value of 0 here, but got a " + std::to_string(arr[i]));
FAIL("We expected a value of 0 here, but got a " << std::to_string(arr[i]));
}
}
@@ -80,7 +80,7 @@ TEST_CASE("Random distribution (max 0, min 2)") {
auto numOnes = 0;
for (size_t i = 0; i < size; i++) {
if (arr[i] != 0 && arr[i] != 1)
FAIL("We expected a value of 0 or 1 here, but got a " + std::to_string(arr[i]));
FAIL("We expected a value of 0 or 1 here, but got a " << std::to_string(arr[i]));
if (arr[i] == 0)
numZeros++;
else
@@ -103,7 +103,7 @@ TEST_CASE("Random distribution (max 0, min 3)") {
auto numTwos = 0;
for (size_t i = 0; i < size; i++) {
if (arr[i] != 0 && arr[i] != 1 && arr[i] != 2)
FAIL("We expected a value between 0 and 2 here, but got a " + std::to_string(arr[i]));
FAIL("We expected a value between 0 and 2 here, but got a " << std::to_string(arr[i]));
if (arr[i] == 0)
numZeros++;
else if (arr[i] == 1)