#include #include "../c++/memory.hpp" namespace { namespace sch { using namespace saw::schema; } SAW_TEST("Memory Estimate"){ using namespace kel::lbm; SAW_EXPECT((memory_estimate().get() == 4u), std::string{"Float32 isn't 4 bytes, but "} + std::to_string(memory_estimate().get()) ); SAW_EXPECT((memory_estimate>().get() == 60u), "FixedArray isn't 60 bytes"); SAW_EXPECT((memory_estimate, sch::UInt8>().get() == 61u), "FixedArray + UInt8 isn't 61 bytes"); } }