From 746bcd25e22e492cd45a92bc9addb04cf81d208b Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Thu, 26 Mar 2020 11:28:58 +0200 Subject: Initial commit --- test/main.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/main.cpp (limited to 'test/main.cpp') diff --git a/test/main.cpp b/test/main.cpp new file mode 100644 index 0000000..faf5a16 --- /dev/null +++ b/test/main.cpp @@ -0,0 +1,17 @@ +#include +#include "resources.h" +#include + +int main(int argc, char** argv) +{ +// testing::InitGoogleTest(&argc, argv); +// return RUN_ALL_TESTS(); + embed::Resources ctx(metadata); + constexpr auto raw = entries.at("/icons/chevron-up.svg"); + static_assert(!raw.empty()); + const auto x = ctx.decompress(raw); + for(const char c : x) + printf("%c", c); + delete[] x.data(); + return 0; +} -- cgit v1.2.1