|
@@ -299,34 +299,28 @@ TEST_CASE("[AABB] Get longest/shortest axis") {
|
|
|
"get_shortest_axis_size() should return the expected value.");
|
|
|
}
|
|
|
|
|
|
-#ifndef _MSC_VER
|
|
|
-#warning Support tests need to be re-done
|
|
|
-#endif
|
|
|
-
|
|
|
-/* Support function was actually broken. As it was fixed, the tests now fail. Tests need to be re-done.
|
|
|
-
|
|
|
TEST_CASE("[AABB] Get support") {
|
|
|
const AABB aabb = AABB(Vector3(-1.5, 2, -2.5), Vector3(4, 5, 6));
|
|
|
CHECK_MESSAGE(
|
|
|
- aabb.get_support(Vector3(1, 0, 0)).is_equal_approx(Vector3(-1.5, 7, 3.5)),
|
|
|
+ aabb.get_support(Vector3(1, 0, 0)).is_equal_approx(Vector3(2.5, 2, -2.5)),
|
|
|
"get_support() should return the expected value.");
|
|
|
CHECK_MESSAGE(
|
|
|
- aabb.get_support(Vector3(0.5, 1, 0)).is_equal_approx(Vector3(-1.5, 2, 3.5)),
|
|
|
+ aabb.get_support(Vector3(0.5, 1, 0)).is_equal_approx(Vector3(2.5, 7, -2.5)),
|
|
|
"get_support() should return the expected value.");
|
|
|
CHECK_MESSAGE(
|
|
|
- aabb.get_support(Vector3(0.5, 1, -400)).is_equal_approx(Vector3(-1.5, 2, 3.5)),
|
|
|
+ aabb.get_support(Vector3(0.5, 1, -400)).is_equal_approx(Vector3(2.5, 7, -2.5)),
|
|
|
"get_support() should return the expected value.");
|
|
|
CHECK_MESSAGE(
|
|
|
- aabb.get_support(Vector3(0, -1, 0)).is_equal_approx(Vector3(2.5, 7, 3.5)),
|
|
|
+ aabb.get_support(Vector3(0, -1, 0)).is_equal_approx(Vector3(-1.5, 2, -2.5)),
|
|
|
"get_support() should return the expected value.");
|
|
|
CHECK_MESSAGE(
|
|
|
- aabb.get_support(Vector3(0, -0.1, 0)).is_equal_approx(Vector3(2.5, 7, 3.5)),
|
|
|
+ aabb.get_support(Vector3(0, -0.1, 0)).is_equal_approx(Vector3(-1.5, 2, -2.5)),
|
|
|
"get_support() should return the expected value.");
|
|
|
CHECK_MESSAGE(
|
|
|
- aabb.get_support(Vector3()).is_equal_approx(Vector3(2.5, 7, 3.5)),
|
|
|
+ aabb.get_support(Vector3()).is_equal_approx(Vector3(-1.5, 2, -2.5)),
|
|
|
"get_support() should return the expected value with a null vector.");
|
|
|
}
|
|
|
-*/
|
|
|
+
|
|
|
TEST_CASE("[AABB] Grow") {
|
|
|
const AABB aabb = AABB(Vector3(-1.5, 2, -2.5), Vector3(4, 5, 6));
|
|
|
CHECK_MESSAGE(
|