about summary refs log tree commit diff
path: root/tests/test_pyhegp.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_pyhegp.py')
-rw-r--r--tests/test_pyhegp.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_pyhegp.py b/tests/test_pyhegp.py
index c355df5..1fceb99 100644
--- a/tests/test_pyhegp.py
+++ b/tests/test_pyhegp.py
@@ -24,6 +24,7 @@ import numpy as np
 from pytest import approx
 
 from pyhegp.pyhegp import Stats, hegp_encrypt, hegp_decrypt, random_key, pool_stats, standardize, unstandardize
+from pyhegp.utils import negate
 
 @given(st.lists(st.lists(arrays("float64",
                                 st.shared(array_shapes(min_dims=1, max_dims=1),
@@ -81,9 +82,6 @@ def square_matrices(order, elements=None):
         return draw(arrays("float64", (n, n), elements=elements))
     return st.composite(generate)
 
-def negate(predicate):
-    return lambda *args, **kwargs: not predicate(*args, **kwargs)
-
 def is_singular(matrix):
     # We want to avoid nearly singular matrices as well. Hence, we set
     # a looser absolute tolerance.