removed float check
This commit is contained in:
parent
b4fd9e5545
commit
b4312a18de
@ -300,16 +300,10 @@ TEST_CASE("algorithms")
|
||||
SECTION("int")
|
||||
{
|
||||
json json_arr = {0, 5, 2, 4, 10, 20, 30, 40, 50, 1};
|
||||
std::iota(json_arr.begin(), json_arr.end(), 0);
|
||||
const int number = 0;
|
||||
std::iota(json_arr.begin(), json_arr.end(), number);
|
||||
CHECK(json_arr == json({0, 1, 2, 3, 4, 5, 6, 7, 8, 9}));
|
||||
}
|
||||
|
||||
SECTION("double")
|
||||
{
|
||||
json json_arr = {0.5, 51, 2.53, 4.1, 10.43, 20.12, 30.5, 140, 50.50, 1};
|
||||
std::iota(json_arr.begin(), json_arr.end(), 0.5);
|
||||
CHECK(json_arr == json({0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5}));
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user