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

Function check_slice

tests/test_voxel.cpp:22–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22static void check_slice(Vec2<int> position, VoxelSlice &s, bool expected)
23{
24 if (s.getBit(position) != expected)
25 {
26 LogError("Unexpected voxel at %s - expected %d", position, expected ? 1 : 0);
27 exit(EXIT_FAILURE);
28 }
29}
30
31static void test_voxel(Vec3<int> voxel_size)
32{

Callers 1

test_voxelFunction · 0.85

Calls 1

getBitMethod · 0.80

Tested by

no test coverage detected