mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-17 04:22:18 +02:00
Tests: replace constants with sizeofString(n)
This commit is contained in:
@ -21,8 +21,8 @@ TEST_CASE("MemoryPool::clear()") {
|
||||
}
|
||||
|
||||
SECTION("Discards allocated strings") {
|
||||
pool.saveString(adaptString(const_cast<char*>("123456789")));
|
||||
REQUIRE(pool.size() == 10);
|
||||
pool.saveString(adaptString("123456789"));
|
||||
REQUIRE(pool.size() == sizeofString(9));
|
||||
|
||||
pool.clear();
|
||||
|
||||
|
Reference in New Issue
Block a user