mirror of
https://github.com/minetest/minetest.git
synced 2024-12-25 07:32:24 +01:00
Don't test overflow behavior for VoxelArea extents
This commit is contained in:
parent
833538cc90
commit
2d8eac4e0a
@ -120,7 +120,7 @@ void TestVoxelArea::test_extent()
|
|||||||
VoxelArea v1(v3s16(-1337, -547, -789), v3s16(-147, 447, 669));
|
VoxelArea v1(v3s16(-1337, -547, -789), v3s16(-147, 447, 669));
|
||||||
UASSERT(v1.getExtent() == v3s16(1191, 995, 1459));
|
UASSERT(v1.getExtent() == v3s16(1191, 995, 1459));
|
||||||
|
|
||||||
VoxelArea v2(v3s16(32493, -32507, 32753), v3s16(32508, -32492, -32768));
|
VoxelArea v2(v3s16(32493, -32507, 32752), v3s16(32508, -32492, 32767));
|
||||||
UASSERT(v2.getExtent() == v3s16(16, 16, 16));
|
UASSERT(v2.getExtent() == v3s16(16, 16, 16));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -129,7 +129,7 @@ void TestVoxelArea::test_volume()
|
|||||||
VoxelArea v1(v3s16(-1337, -547, -789), v3s16(-147, 447, 669));
|
VoxelArea v1(v3s16(-1337, -547, -789), v3s16(-147, 447, 669));
|
||||||
UASSERTEQ(s32, v1.getVolume(), 1728980655);
|
UASSERTEQ(s32, v1.getVolume(), 1728980655);
|
||||||
|
|
||||||
VoxelArea v2(v3s16(32493, -32507, 32753), v3s16(32508, -32492, -32768));
|
VoxelArea v2(v3s16(32493, -32507, 32752), v3s16(32508, -32492, 32767));
|
||||||
UASSERTEQ(s32, v2.getVolume(), 4096);
|
UASSERTEQ(s32, v2.getVolume(), 4096);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user