Update doctest
continuous-integration/drone/push Build is failing

This commit is contained in:
Deukhoofd committed 2022-03-11 11:06:44 +01:00
1 parent ba411d011b
commit 2bf12ab879
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -103,7 +103,7 @@ if (ARBUTILS_TESTS)
CPMAddPackage(
NAME doctest
GITHUB_REPOSITORY doctest/doctest
GIT_TAG 2.4.0
GIT_TAG v2.4.8
DOWNLOAD_ONLY YES
)
+3 -3
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)