Skip to content

Commit

Permalink
fix: tests now should accept that all scalar types can call `to_publi…
Browse files Browse the repository at this point in the history
…c()`
  • Loading branch information
cyberglot committed Nov 8, 2024
1 parent 0f5c0d3 commit 7c68339
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions nada_dsl/scalar_type_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
from nada_dsl.nada_types.scalar_types import Integer, PublicInteger, SecretInteger, Boolean, PublicBoolean, \
SecretBoolean, UnsignedInteger, PublicUnsignedInteger, SecretUnsignedInteger, ScalarType, BooleanType

def test2_if_else(int1: SecretInteger, int2: SecretInteger) -> PublicInteger:
condition = (int1 > int2)
return condition.if_else(int1, int2).to_public()

def combine_lists(list1, list2):
"""This returns all combinations for the items of two lists"""
result = []
Expand Down Expand Up @@ -269,7 +265,7 @@ def test_random(operand):


# Allowed types that can invoke the to_public() function.
to_public_operands = secret_integers + secret_unsigned_integers + secret_booleans
to_public_operands = integers + unsigned_integers + booleans


@pytest.mark.parametrize("operand", to_public_operands)
Expand Down

0 comments on commit 7c68339

Please sign in to comment.