diff options
author | Arun Isaac | 2025-07-25 12:56:02 +0100 |
---|---|---|
committer | Arun Isaac | 2025-08-01 00:33:32 +0100 |
commit | 40bef67c4dffce756f6cb41a65e87867295146a7 (patch) | |
tree | 26c709978b65aa3fa83703d98da98ece426b4c5f | |
parent | 1df760ab433a3c1857c59ef15562ab115722a795 (diff) | |
download | pyhegp-40bef67c4dffce756f6cb41a65e87867295146a7.tar.gz pyhegp-40bef67c4dffce756f6cb41a65e87867295146a7.tar.lz pyhegp-40bef67c4dffce756f6cb41a65e87867295146a7.zip |
Do not test encryption on order 1 matrices.
* tests/test_pyhegp.py (test_hegp_encryption_decryption_are_inverses): Do not test encryption on order 1 matrices.
-rw-r--r-- | tests/test_pyhegp.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_pyhegp.py b/tests/test_pyhegp.py index 6cb35de..2d2a258 100644 --- a/tests/test_pyhegp.py +++ b/tests/test_pyhegp.py @@ -44,15 +44,15 @@ def no_column_zero_standard_deviation(matrix): @given(st.one_of( arrays("int32", - array_shapes(min_dims=2, max_dims=2), + array_shapes(min_dims=2, max_dims=2, min_side=2), elements=st.integers(min_value=0, max_value=2)), # The array above is the only realistic input, but we test more # kinds of inputs for good measure. arrays("int32", - array_shapes(min_dims=2, max_dims=2), + array_shapes(min_dims=2, max_dims=2, min_side=2), elements=st.integers(min_value=0, max_value=100)), arrays("float64", - array_shapes(min_dims=2, max_dims=2), + array_shapes(min_dims=2, max_dims=2, min_side=2), elements=st.floats(min_value=0, max_value=100))) # Reject matrices with zero standard deviation columns since # they trigger a division by zero. |