aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArun Isaac2025-07-11 22:12:27 +0100
committerArun Isaac2025-07-17 01:47:45 +0100
commite3db7f74c862b3be9ff9e7371ab600326b2d9cd9 (patch)
tree9468a9b3b620696987831cf0edf60de2c7f16773 /tests
parenta6bf9abb91ad6576ce23e7f8731e74c2a73d2ea6 (diff)
downloadpyhegp-e3db7f74c862b3be9ff9e7371ab600326b2d9cd9.tar.gz
pyhegp-e3db7f74c862b3be9ff9e7371ab600326b2d9cd9.tar.lz
pyhegp-e3db7f74c862b3be9ff9e7371ab600326b2d9cd9.zip
Reduce maximum matrix size testing encryption/decryption.
* tests/test_pyhegp.py (test_hegp_encryption_decryption_are_inverses): Reduce maximum matrix size to 100.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_pyhegp.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_pyhegp.py b/tests/test_pyhegp.py
index eac499e..567ee17 100644
--- a/tests/test_pyhegp.py
+++ b/tests/test_pyhegp.py
@@ -25,15 +25,15 @@ from pyhegp.pyhegp import hegp_encrypt, hegp_decrypt, random_key
@given(st.one_of(
arrays("int32",
- array_shapes(min_dims=2, max_dims=2, min_side=2, max_side=200),
+ array_shapes(min_dims=2, max_dims=2, min_side=2, max_side=100),
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, min_side=2, max_side=200),
+ array_shapes(min_dims=2, max_dims=2, min_side=2, max_side=100),
elements=st.integers(min_value=0, max_value=100)),
arrays("float64",
- array_shapes(min_dims=2, max_dims=2, min_side=2, max_side=200),
+ array_shapes(min_dims=2, max_dims=2, min_side=2, max_side=100),
elements=st.floats(min_value=0, max_value=100)))
)
@settings(deadline=None)