Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gtests/blenlib/BLI_math_geom_test.cc')
-rw-r--r--tests/gtests/blenlib/BLI_math_geom_test.cc21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/gtests/blenlib/BLI_math_geom_test.cc b/tests/gtests/blenlib/BLI_math_geom_test.cc
deleted file mode 100644
index ea86e5aa97e..00000000000
--- a/tests/gtests/blenlib/BLI_math_geom_test.cc
+++ /dev/null
@@ -1,21 +0,0 @@
-/* Apache License, Version 2.0 */
-
-#include "testing/testing.h"
-
-#include "BLI_math.h"
-
-#include "stubs/bf_intern_eigen_stubs.h"
-
-TEST(math_geom, DistToLine2DSimple)
-{
- float p[2] = {5.0f, 1.0f}, a[2] = {0.0f, 0.0f}, b[2] = {2.0f, 0.0f};
- float distance = dist_to_line_v2(p, a, b);
- EXPECT_NEAR(1.0f, distance, 1e-6);
-}
-
-TEST(math_geom, DistToLineSegment2DSimple)
-{
- float p[2] = {3.0f, 1.0f}, a[2] = {0.0f, 0.0f}, b[2] = {2.0f, 0.0f};
- float distance = dist_to_line_segment_v2(p, a, b);
- EXPECT_NEAR(sqrtf(2.0f), distance, 1e-6);
-}