summaryrefslogtreecommitdiffstats
path: root/tests/Generating/PieceRotationTest.cpp
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2020-05-05 22:39:59 +0200
committerGitHub <noreply@github.com>2020-05-05 22:39:59 +0200
commit8e2dfce84bf5e3993a910e535a51d40ebe0803d0 (patch)
tree0f570f9f54d8afc8dac4db307d32a6fa057d15f3 /tests/Generating/PieceRotationTest.cpp
parentRemove cRankManager migration code (#4714) (diff)
downloadcuberite-8e2dfce84bf5e3993a910e535a51d40ebe0803d0.tar
cuberite-8e2dfce84bf5e3993a910e535a51d40ebe0803d0.tar.gz
cuberite-8e2dfce84bf5e3993a910e535a51d40ebe0803d0.tar.bz2
cuberite-8e2dfce84bf5e3993a910e535a51d40ebe0803d0.tar.lz
cuberite-8e2dfce84bf5e3993a910e535a51d40ebe0803d0.tar.xz
cuberite-8e2dfce84bf5e3993a910e535a51d40ebe0803d0.tar.zst
cuberite-8e2dfce84bf5e3993a910e535a51d40ebe0803d0.zip
Diffstat (limited to 'tests/Generating/PieceRotationTest.cpp')
-rw-r--r--tests/Generating/PieceRotationTest.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/Generating/PieceRotationTest.cpp b/tests/Generating/PieceRotationTest.cpp
index ace3bd489..fff3655c1 100644
--- a/tests/Generating/PieceRotationTest.cpp
+++ b/tests/Generating/PieceRotationTest.cpp
@@ -53,11 +53,14 @@ public:
-#define EXPECT(X) if (!(X)) \
- { \
- ASSERT(X); \
- throw cTestFailure(#X, __FILE__, __LINE__); \
- }
+#define EXPECT(X) \
+ do { \
+ if (!(X)) \
+ { \
+ ASSERT(X); \
+ throw cTestFailure(#X, __FILE__, __LINE__); \
+ } \
+ } while (false)