Move symbol definition out of __init__

Signed-off-by: Werner Lewis <werner.lewis@arm.com>
This commit is contained in:
Werner Lewis 2022-09-12 17:34:15 +01:00
parent 855e45c817
commit 1fade8adb6

View file

@ -211,6 +211,7 @@ class BignumCmpAbs(BignumCmp):
class BignumAdd(BignumOperation): class BignumAdd(BignumOperation):
"""Test cases for bignum value addition.""" """Test cases for bignum value addition."""
count = 0 count = 0
symbol = "+"
test_function = "mbedtls_mpi_add_mpi" test_function = "mbedtls_mpi_add_mpi"
test_name = "MPI add" test_name = "MPI add"
input_cases = cast( input_cases = cast(
@ -223,10 +224,6 @@ class BignumAdd(BignumOperation):
)) ))
) )
def __init__(self, val_l, val_r) -> None:
super().__init__(val_l, val_r)
self.symbol = "+"
def result(self) -> str: def result(self) -> str:
return quote_str("{:x}".format(self.int_l + self.int_r)) return quote_str("{:x}".format(self.int_l + self.int_r))