From c1f805f9b9a15b59ad1111bf698421b0c947dc71 Mon Sep 17 00:00:00 2001
From: MaNyh <nyhuis@tfd.uni-hannover.de>
Date: Fri, 10 Dec 2021 10:23:16 +0100
Subject: [PATCH] more tests

---
 tests/test_ntrfc_math.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tests/test_ntrfc_math.py b/tests/test_ntrfc_math.py
index 755293dd..c12d35eb 100644
--- a/tests/test_ntrfc_math.py
+++ b/tests/test_ntrfc_math.py
@@ -2,7 +2,6 @@ import numpy as np
 import pyvista as pv
 
 
-
 def test_absVec():
     from ntrfc.utils.math.vectorcalc import vecAbs
     a = np.array([1,1])
@@ -23,3 +22,9 @@ def test_ellipsoidVol():
     ellipsoid = pv.ParametricEllipsoid(*sigma)
     calcVol = ellipsoidVol(sigma)
     assert np.isclose(calcVol, ellipsoid.volume, rtol=1e-03, atol=1e-03)
+
+
+def test_randomUnitVec():
+    from ntrfc.utils.math.vectorcalc import randomUnitVec, vecAbs
+    rvec = randomUnitVec()
+    assert vecAbs(rvec)==1
-- 
GitLab