MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / check_voxel

Function check_voxel

tests/test_voxel.cpp:13–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11using namespace OpenApoc;
12
13static void check_voxel(Vec3<int> position, VoxelMap &v, bool expected)
14{
15 if (v.getBit(position) != expected)
16 {
17 LogError("Unexpected voxel at %s - expected %d", position, expected ? 1 : 0);
18 exit(EXIT_FAILURE);
19 }
20}
21
22static void check_slice(Vec2<int> position, VoxelSlice &s, bool expected)
23{

Callers 1

test_voxelFunction · 0.85

Calls 1

getBitMethod · 0.80

Tested by

no test coverage detected