diff --git a/tests/core.cpp b/tests/core.cpp index cb5b75537a..ddd679581c 100644 --- a/tests/core.cpp +++ b/tests/core.cpp @@ -487,6 +487,15 @@ TEST_CASE("BoxedValue.Constant") STATIC_REQUIRE(vc() == 1); } +TEST_CASE("roundUpToMultiple") +{ + STATIC_REQUIRE(llama::roundUpToMultiple(0, 16) == 0); + STATIC_REQUIRE(llama::roundUpToMultiple(5, 16) == 16); + STATIC_REQUIRE(llama::roundUpToMultiple(16, 16) == 16); + STATIC_REQUIRE(llama::roundUpToMultiple(17, 16) == 32); + STATIC_REQUIRE(llama::roundUpToMultiple(300, 16) == 304); +} + TEST_CASE("divCeil") { STATIC_REQUIRE(llama::divCeil(0, 16) == 0);