This repository has been archived by the owner on Apr 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
rr-
committed
Sep 4, 2015
1 parent
97d06fb
commit 1ec600b
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.