Skip to content

Commit

Permalink
drop test
Browse files Browse the repository at this point in the history
  • Loading branch information
bcebere committed Dec 20, 2021
1 parent 72e5dd4 commit f8af5e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
6 changes: 3 additions & 3 deletions tenseal/preload.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
15 changes: 0 additions & 15 deletions tests/python/sealapi/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f8af5e6

Please sign in to comment.