summaryrefslogtreecommitdiffstats
path: root/tests/Generating
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2019-08-26 21:38:34 +0200
committerGitHub <noreply@github.com>2019-08-26 21:38:34 +0200
commit74579fbadf0f89154cba5d9157a57f59fcda8f70 (patch)
tree2aca1ce5d8e41e91adcfe25dfb4bb51369fb865e /tests/Generating
parentAdded BlockState implementation for 1.13 support. (diff)
downloadcuberite-74579fbadf0f89154cba5d9157a57f59fcda8f70.tar
cuberite-74579fbadf0f89154cba5d9157a57f59fcda8f70.tar.gz
cuberite-74579fbadf0f89154cba5d9157a57f59fcda8f70.tar.bz2
cuberite-74579fbadf0f89154cba5d9157a57f59fcda8f70.tar.lz
cuberite-74579fbadf0f89154cba5d9157a57f59fcda8f70.tar.xz
cuberite-74579fbadf0f89154cba5d9157a57f59fcda8f70.tar.zst
cuberite-74579fbadf0f89154cba5d9157a57f59fcda8f70.zip
Diffstat (limited to 'tests/Generating')
-rw-r--r--tests/Generating/LoadablePieces.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/Generating/LoadablePieces.cpp b/tests/Generating/LoadablePieces.cpp
index 58b65464d..26cec8627 100644
--- a/tests/Generating/LoadablePieces.cpp
+++ b/tests/Generating/LoadablePieces.cpp
@@ -11,6 +11,7 @@
#include <unistd.h>
#define GetCurrentFolder getcwd
#endif
+#include "../TestHelpers.h"
#include "Generating/PrefabPiecePool.h"
@@ -29,8 +30,8 @@ static int DoLoaderTest(void)
LOG("Loaded %u regular pieces and %u starting pieces", static_cast<unsigned>(test.GetAllPiecesCount()), static_cast<unsigned>(test.GetStartingPiecesCount()));
// Check that we loaded all the pieces:
- testassert(test.GetAllPiecesCount() == 1);
- testassert(test.GetStartingPiecesCount() == 1);
+ TEST_EQUAL(test.GetAllPiecesCount(), 1);
+ TEST_EQUAL(test.GetStartingPiecesCount(), 1);
return 0;
}