diff --git a/tests/fmt/alice_soft/ald_archive_test.cc b/tests/fmt/alice_soft/ald_archive_test.cc new file mode 100644 index 000000000..d9b1e2a7b --- /dev/null +++ b/tests/fmt/alice_soft/ald_archive_test.cc @@ -0,0 +1,22 @@ +#include "fmt/alice_soft/ald_archive.h" +#include "test_support/archive_support.h" +#include "test_support/catch.hh" +#include "test_support/file_support.h" + +using namespace au; +using namespace au::fmt::alice_soft; + +TEST_CASE("Unpacking AliceSoft's ALD archives works") +{ + std::vector> expected_files + { + tests::stub_file("123.txt", "1234567890"_b), + tests::stub_file("abc.txt", "abcdefghijklmnopqrstuvwxyz"_b), + }; + + AldArchive archive; + auto actual_files = au::tests::unpack_to_memory( + "tests/fmt/alice_soft/files/ald/test.ald", archive); + + au::tests::compare_files(expected_files, actual_files, true); +} diff --git a/tests/fmt/alice_soft/files/ald/test.ald b/tests/fmt/alice_soft/files/ald/test.ald new file mode 100644 index 000000000..e1b18c855 Binary files /dev/null and b/tests/fmt/alice_soft/files/ald/test.ald differ