diff --git a/test/tests/S6ImportExportTests.cpp b/test/tests/S6ImportExportTests.cpp index 536272f734..f5ebe358d4 100644 --- a/test/tests/S6ImportExportTests.cpp +++ b/test/tests/S6ImportExportTests.cpp @@ -1,5 +1,5 @@ /***************************************************************************** - * Copyright (c) 2014-2019 OpenRCT2 developers + * Copyright (c) 2014-2020 OpenRCT2 developers * * For a complete list of all authors, please refer to contributors.md * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -566,3 +567,13 @@ TEST(S6ImportExportAdvanceTicks, all) SUCCEED(); } + +TEST(SeaDecrypt, DecryptSea) +{ + auto path = TestData::GetParkPath("volcania.sea"); + auto decrypted = DecryptSea(path); + auto sha1 = Crypt::SHA1(decrypted.data(), decrypted.size()); + std::array expected = { 0x1B, 0x85, 0xFC, 0xC0, 0xE8, 0x9B, 0xBE, 0x72, 0xD9, 0x1F, + 0x6E, 0xC8, 0xB1, 0xFF, 0xEC, 0x70, 0x2A, 0x72, 0x05, 0xBB }; + ASSERT_EQ(sha1, expected); +} diff --git a/test/tests/testdata/parks/volcania.sea b/test/tests/testdata/parks/volcania.sea new file mode 100644 index 0000000000..f79c5fa1ec Binary files /dev/null and b/test/tests/testdata/parks/volcania.sea differ