Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
test_collision.cpp File Reference
#include "test.h"
#include "dummymap.h"
#include "environment.h"
#include "irrlicht_changes/printing.h"
#include "collision.h"
+ Include dependency graph for test_collision.cpp:

Classes

class  TestCollision
 

Macros

#define UASSERTEQ_F(actual, expected)
 
#define UASSERTEQ_V3F(actual, expected)
 
#define fpos(x, y, z)   (BS * v3f(x, y, z))
 

Variables

static TestCollision g_test_instance
 

Macro Definition Documentation

◆ fpos

#define fpos ( x,
y,
z )   (BS * v3f(x, y, z))

◆ UASSERTEQ_F

#define UASSERTEQ_F ( actual,
expected )
Value:
do { \
f32 a = (actual); \
f32 e = (expected); \
UTEST(fabsf(a - e) <= 0.0001f, "actual: %.f expected: %.f", a, e) \
} while (0)

◆ UASSERTEQ_V3F

#define UASSERTEQ_V3F ( actual,
expected )
Value:
do { \
v3f va = (actual); \
v3f ve = (expected); \
UASSERTEQ_F(va.X, ve.X); UASSERTEQ_F(va.Y, ve.Y); UASSERTEQ_F(va.Z, ve.Z); \
} while (0)
core::vector3df v3f
Definition irr_v3d.h:11
#define UASSERTEQ_F(actual, expected)
Definition test_collision.cpp:51

Referenced by TestCollision::testCollisionMoveSimple().

Variable Documentation

◆ g_test_instance

TestCollision g_test_instance
static