Skip to content

Commit

Permalink
Add two test .lin files for the altar.map example
Browse files Browse the repository at this point in the history
Test now fails because there should be two pointfiles enumerated with
forEachPointfile().
  • Loading branch information
Matthew Mott committed May 12, 2021
1 parent bf131e1 commit 6c3af51
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/PointTrace.cpp
Expand Up @@ -44,7 +44,7 @@ TEST_F(PointTraceTest, IdentifyMapPointfiles)
int pointfiles = 0;
GlobalMapModule().forEachPointfile([&](const std::string&)
{ ++pointfiles; });
EXPECT_EQ(pointfiles, 0);
EXPECT_EQ(pointfiles, 2);
}

}
5 changes: 5 additions & 0 deletions test/resources/tdm/maps/altar.lin
@@ -0,0 +1,5 @@
544.000000 64.000000 112.000000
544.000000 64.000000 240.000000
512.000000 64.000000 240.000000
512.000000 64.000000 112.000000
544.000000 64.000000 112.000000
5 changes: 5 additions & 0 deletions test/resources/tdm/maps/altar_portalL_544_64_112.lin
@@ -0,0 +1,5 @@
544.000000 64.000000 112.000000
544.000000 64.000000 240.000000
512.000000 64.000000 240.000000
512.000000 64.000000 112.000000
544.000000 64.000000 112.000000

0 comments on commit 6c3af51

Please sign in to comment.