Update doctest
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
ba411d011b
commit
2bf12ab879
|
@ -103,7 +103,7 @@ if (ARBUTILS_TESTS)
|
||||||
CPMAddPackage(
|
CPMAddPackage(
|
||||||
NAME doctest
|
NAME doctest
|
||||||
GITHUB_REPOSITORY doctest/doctest
|
GITHUB_REPOSITORY doctest/doctest
|
||||||
GIT_TAG 2.4.0
|
GIT_TAG v2.4.8
|
||||||
DOWNLOAD_ONLY YES
|
DOWNLOAD_ONLY YES
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,7 @@ TEST_CASE("Random distribution (max 0, min 1)") {
|
||||||
}
|
}
|
||||||
for (size_t i = 0; i < size; i++) {
|
for (size_t i = 0; i < size; i++) {
|
||||||
if (arr[i] != 0)
|
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;
|
auto numOnes = 0;
|
||||||
for (size_t i = 0; i < size; i++) {
|
for (size_t i = 0; i < size; i++) {
|
||||||
if (arr[i] != 0 && arr[i] != 1)
|
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)
|
if (arr[i] == 0)
|
||||||
numZeros++;
|
numZeros++;
|
||||||
else
|
else
|
||||||
|
@ -103,7 +103,7 @@ TEST_CASE("Random distribution (max 0, min 3)") {
|
||||||
auto numTwos = 0;
|
auto numTwos = 0;
|
||||||
for (size_t i = 0; i < size; i++) {
|
for (size_t i = 0; i < size; i++) {
|
||||||
if (arr[i] != 0 && arr[i] != 1 && arr[i] != 2)
|
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)
|
if (arr[i] == 0)
|
||||||
numZeros++;
|
numZeros++;
|
||||||
else if (arr[i] == 1)
|
else if (arr[i] == 1)
|
||||||
|
|
Loading…
Reference in New Issue