From 2952c5f4cd6dcdf1d83b053ff57104dca688b46c Mon Sep 17 00:00:00 2001 From: chrisjonesBSU Date: Wed, 4 May 2022 16:34:26 -0600 Subject: [PATCH] simple test for moit function --- cmeutils/tests/test_geometry.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmeutils/tests/test_geometry.py b/cmeutils/tests/test_geometry.py index 786a897..94300f5 100644 --- a/cmeutils/tests/test_geometry.py +++ b/cmeutils/tests/test_geometry.py @@ -4,10 +4,14 @@ import pytest from base_test import BaseTest -from cmeutils.geometry import get_plane_normal, angle_between_vectors +from cmeutils.geometry import get_plane_normal, angle_between_vectors, moit class TestGeometry(BaseTest): + def test_moit(self): + _moit = moit(points=[(-1, 0, 0), (1, 0, 0)], masses=[1, 1]) + assert np.array_equal(_moit, np.array([0, 2., 2.])) + def test_get_plane_normal(self): points = np.array( [[ 1, 0, 0],