summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-03-09 23:50:56 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-03-09 23:50:56 +0000
commitbd8ebc1fc0307199548841136eb994af5792ee48 (patch)
treec48e9384f128f39779879838662899cfc5b60eaa
parentMake objectives responsible for navigation (diff)
downloadilt-bd8ebc1fc0307199548841136eb994af5792ee48.tar.bz2
ilt-bd8ebc1fc0307199548841136eb994af5792ee48.tar.xz
ilt-bd8ebc1fc0307199548841136eb994af5792ee48.zip
Fix paths in test cases
-rw-r--r--test/test-obj.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-obj.cpp b/test/test-obj.cpp
index 963a9ad..813a69c 100644
--- a/test/test-obj.cpp
+++ b/test/test-obj.cpp
@@ -12,7 +12,7 @@
BOOST_AUTO_TEST_CASE(objparse)
{
- ObjParser op {"/home/randomdan/dev/game/res/brush47.obj"};
+ ObjParser op {RESDIR "/brush47.obj"};
BOOST_CHECK_EQUAL(75, op.vertices.size());
BOOST_CHECK_EQUAL(112, op.texCoords.size());
BOOST_CHECK_EQUAL(31, op.normals.size());
@@ -27,7 +27,7 @@ BOOST_AUTO_TEST_CASE(objparse)
BOOST_AUTO_TEST_CASE(create_meshes)
{
- ObjParser op {"/home/randomdan/dev/game/res/brush47.obj"};
+ ObjParser op {RESDIR "/brush47.obj"};
const auto ms = op.createMeshData();
BOOST_REQUIRE_EQUAL(3, ms.size());
BOOST_REQUIRE_EQUAL("Body", ms.begin()->first);