aboutsummaryrefslogtreecommitdiff
path: root/src/unittest
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2022-04-07 21:54:33 -0400
committerrubenwardy <rw@rubenwardy.com>2022-04-08 14:55:21 +0100
commit2d8eac4e0a609acf7a26e59141e6c684fdb546d0 (patch)
tree870fc55f1cbec3a122e9a2a80206a2ca6dbe7336 /src/unittest
parent833538cc90db1c489fd66a41aa033f9519963d04 (diff)
downloadminetest-2d8eac4e0a609acf7a26e59141e6c684fdb546d0.tar.gz
minetest-2d8eac4e0a609acf7a26e59141e6c684fdb546d0.tar.bz2
minetest-2d8eac4e0a609acf7a26e59141e6c684fdb546d0.zip
Don't test overflow behavior for VoxelArea extents
Diffstat (limited to 'src/unittest')
-rw-r--r--src/unittest/test_voxelarea.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unittest/test_voxelarea.cpp b/src/unittest/test_voxelarea.cpp
index 1d72650d7..a79c9778e 100644
--- a/src/unittest/test_voxelarea.cpp
+++ b/src/unittest/test_voxelarea.cpp
@@ -120,7 +120,7 @@ void TestVoxelArea::test_extent()
VoxelArea v1(v3s16(-1337, -547, -789), v3s16(-147, 447, 669));
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));
}
@@ -129,7 +129,7 @@ void TestVoxelArea::test_volume()
VoxelArea v1(v3s16(-1337, -547, -789), v3s16(-147, 447, 669));
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);
}