20#include <magic_enum.hpp>
21#include <boost/test/unit_test.hpp>
26using magic_enum::iostream_operators::operator<<;
33 file.
name =
"test_file";
34 std::string data =
"Hello, World!";
46 file.
name =
"test_file";
47 std::string data =
"Hello, World!";
60 data.reserve( 13 * 100000 + 1 );
62 for(
int i = 0; i < 100000; ++i )
63 data +=
"Hello, World!";
77 data.reserve( 100000 );
79 for(
int i = 0; i < 100000; ++i )
80 data +=
static_cast<char>( i % 256 );
93 data.reserve( 100000 );
98 for(
int i = 0; i < 100000; ++i )
99 data +=
static_cast<char>(
rng() % 256 );
115 file.
name =
"test_file";
116 std::string data =
"Hello, World!";
129BOOST_AUTO_TEST_SUITE_END()
static RETURN_CODE DecompressAndDecode(EMBEDDED_FILE &aFile)
Takes data from the #compressedEncodedData buffer and Base64 decodes it.
static RETURN_CODE CompressAndEncode(EMBEDDED_FILE &aFile)
Takes data from the #decompressedData buffer and compresses it using ZSTD into the #compressedEncoded...
static boost::mt19937 rng
std::vector< char > decompressedData
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_AUTO_TEST_CASE(CompressAndEncode_OK)