Skip to content

Commit

Permalink
Add test for OpenEnroth#416
Browse files Browse the repository at this point in the history
  • Loading branch information
pskelton committed Dec 11, 2023
1 parent 27f0455 commit cf21082
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/Bin/GameTest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if(OE_BUILD_TESTS)
ExternalProject_Add(OpenEnroth_TestData
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/test_data_tmp
GIT_REPOSITORY https://github.com/OpenEnroth/OpenEnroth_TestData.git
GIT_TAG 6936e9f1d5b0f8405a40526ded059a3ae0262e9b
GIT_TAG fc1824b6f2fec2120d8eab2e6d353683d7744033
SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR}/test_data
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
Expand Down
16 changes: 16 additions & 0 deletions test/Bin/GameTest/GameTests_0000.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,22 @@ GAME_TEST(Issues, Issue408_939_970_996) {
checkSkills({ {0, 10}, {1, 11}, {2, 14}, {3, 9} });
}

GAME_TEST(Issues, Issue416) {
// Area in The Dragon Caves is inaccessible
test.playTraceFromTestData("issue_416.mm7", "issue_416.json");
// Make sure all dragons are above the ground
for (auto& actor : pActors) {
EXPECT_GE(actor.pos.z, 0);
}

// Same issue in Lincoln
test.playTraceFromTestData("issue_416b.mm7", "issue_416b.json");
// Make sure all droids are above the ground
for (auto& actor : pActors) {
EXPECT_GE(actor.pos.z, 224);
}
}

GAME_TEST(Issues, Issue417a) {
// Testing that portal nodes looping doesnt assert.
test.playTraceFromTestData("issue_417a.mm7", "issue_417a.json");
Expand Down

0 comments on commit cf21082

Please sign in to comment.