From f8af5e6341ad8123a6b4b722faafcd539dced303 Mon Sep 17 00:00:00 2001 From: Bogdan Cebere Date: Mon, 20 Dec 2021 10:15:44 +0200 Subject: [PATCH] drop test --- tenseal/preload.bzl | 6 +++--- tests/python/sealapi/test_util.py | 15 --------------- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/tenseal/preload.bzl b/tenseal/preload.bzl index 37dca895..e350fb08 100644 --- a/tenseal/preload.bzl +++ b/tenseal/preload.bzl @@ -40,7 +40,7 @@ def tenseal_preload(): if "rules_python" not in native.existing_rules(): http_archive( - name = "rules_python", - sha256 = "b6d46438523a3ec0f3cead544190ee13223a52f6a6765a29eae7b7cc24cc83a0", - url = "https://github.com/bazelbuild/rules_python/releases/download/0.1.0/rules_python-0.1.0.tar.gz", + name = "rules_python", + url = "https://github.com/bazelbuild/rules_python/releases/download/0.5.0/rules_python-0.5.0.tar.gz", + sha256 = "cd6730ed53a002c56ce4e2f396ba3b3be262fd7cb68339f0377a45e8227fe332", ) diff --git a/tests/python/sealapi/test_util.py b/tests/python/sealapi/test_util.py index a1ed3706..882640cc 100644 --- a/tests/python/sealapi/test_util.py +++ b/tests/python/sealapi/test_util.py @@ -122,21 +122,6 @@ def test_util_croots(): assert croot.get_root(5) != 0 -def test_util_polyarithsmallmod(): - assert util.modulo_poly_coeffs([5, 6, 7, 8, 9], 5, sealapi.Modulus(2)) == [3, 4, 5, 6, 7] - assert util.negate_poly_coeffmod([1, 2], 2, sealapi.Modulus(5)) == [4, 3] - assert util.add_poly_coeffmod([1, 2], [1, 2], 2, sealapi.Modulus(5)) == [2, 4] - assert util.sub_poly_coeffmod([1, 2], [1, 2], 2, sealapi.Modulus(5)) == [0, 0] - assert util.multiply_poly_scalar_coeffmod([1, 2], 2, 3, sealapi.Modulus(5)) == [3, 1] - assert util.dyadic_product_coeffmod([5, 7], [2, 3], 2, sealapi.Modulus(5), 4) == [0, 1, 0, 0] - assert util.poly_infty_norm_coeffmod([5, 7], 2, sealapi.Modulus(5)) == 2 - assert util.negacyclic_shift_poly_coeffmod([4, 3], 2, 1, sealapi.Modulus(5)) == [2, 4] - assert util.negacyclic_multiply_poly_mono_coeffmod([4, 3], 2, 2, 1, sealapi.Modulus(5)) == [ - 4, - 3, - ] - - def test_util_polycore(): assert util.poly_to_hex_string([1, 2], 2, 1) == "2x^1 + 1" assert util.poly_to_dec_string([1, 2], 2, 1) == "2x^1 + 1"