diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-03-26 11:28:58 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-03-26 12:19:02 +0200 |
commit | 746bcd25e22e492cd45a92bc9addb04cf81d208b (patch) | |
tree | 3244166092e839b0c19539742ec9377bac6e3517 /test/main.cpp | |
download | rcc-746bcd25e22e492cd45a92bc9addb04cf81d208b.tar.xz |
Initial commit
Diffstat (limited to 'test/main.cpp')
-rw-r--r-- | test/main.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
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 <gtest/gtest.h> +#include "resources.h" +#include <cstdio> + +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; +} |