In some development environments, -1 of uint32_t may become 0.
REQUIRE(scene->reserve(0) == Result::Success);
//Too Big Size
- REQUIRE(scene->reserve(-1) == Result::FailedAllocation);
+ REQUIRE(scene->reserve(UINT32_MAX) == Result::FailedAllocation);
}
TEST_CASE("Scene Clear", "[tvgScene]")
REQUIRE(canvas->reserve(0) == Result::Success);
//Too big size
- REQUIRE(canvas->reserve(-1) == Result::FailedAllocation);
+ REQUIRE(canvas->reserve(UINT32_MAX) == Result::FailedAllocation);
REQUIRE(Initializer::term(CanvasEngine::Sw) == Result::Success);
}