... | ... |
@@ -19,7 +19,7 @@ TEST_CASE("Test Algorithms.h") |
19 | 19 |
for (unsigned c = 0; c < ncol; ++c) |
20 | 20 |
{ |
21 | 21 |
D.set(r, c, r + c); |
22 |
- S.set(r, c, (r + c) / 100.0); |
|
22 |
+ S.set(r, c, (r + c) / 100.f); |
|
23 | 23 |
AP.set(r, c, r - c); |
24 | 24 |
P(r,c) = r * c; |
25 | 25 |
A(r,c) = r * c; |
... | ... |
@@ -38,7 +38,7 @@ TEST_CASE("Test Algorithms.h") |
38 | 38 |
{ |
39 | 39 |
float dTotal = 300 * 10 + 45 * 25; |
40 | 40 |
|
41 |
- REQUIRE(gaps::algo::mean(D) == gaps::algo::mean(S) * 100.0); |
|
41 |
+ REQUIRE(gaps::algo::mean(D) == gaps::algo::mean(S) * 100.f); |
|
42 | 42 |
REQUIRE(gaps::algo::mean(D) == dTotal / (nrow * ncol)); |
43 | 43 |
REQUIRE(gaps::algo::nonZeroMean(D) == dTotal / (nrow * ncol - 1)); |
44 | 44 |
} |
... | ... |
@@ -31,7 +31,7 @@ TEST_CASE("Test Random.h - Random Number Generation") |
31 | 31 |
SECTION("Test uniform distribution over general interval") |
32 | 32 |
{ |
33 | 33 |
// bounds equal |
34 |
- REQUIRE(gaps::random::uniform(4.3,4.3) == 4.3); |
|
34 |
+ REQUIRE(gaps::random::uniform(4.3,4.3) == 4.3f); |
|
35 | 35 |
|
36 | 36 |
// full range possible |
37 | 37 |
float min = 10., max = 0.; |