Skip to content
This repository has been archived by the owner on Apr 25, 2022. It is now read-only.

Commit

Permalink
tests: test AliceSoft's ALD archive
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Sep 4, 2015
1 parent 97d06fb commit 1ec600b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/fmt/alice_soft/ald_archive_test.cc
Original file line number Diff line number Diff line change
@@ -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<std::shared_ptr<File>> 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);
}
Binary file added tests/fmt/alice_soft/files/ald/test.ald
Binary file not shown.

0 comments on commit 1ec600b

Please sign in to comment.