Redefine result() method to return List
Many bignum tests have multiple calculated result values, so return these as a list, rather than formatting as a string. Signed-off-by: Werner Lewis <werner.lewis@arm.com>
This commit is contained in:
parent
7a2731463b
commit
1b20e7e645
3 changed files with 38 additions and 25 deletions
|
@ -108,10 +108,12 @@ class OperationCommon:
|
|||
self.int_b = hex_to_int(val_b)
|
||||
|
||||
def arguments(self) -> List[str]:
|
||||
return [quote_str(self.arg_a), quote_str(self.arg_b), self.result()]
|
||||
return [
|
||||
quote_str(self.arg_a), quote_str(self.arg_b)
|
||||
] + self.result()
|
||||
|
||||
@abstractmethod
|
||||
def result(self) -> str:
|
||||
def result(self) -> List[str]:
|
||||
"""Get the result of the operation.
|
||||
|
||||
This could be calculated during initialization and stored as `_result`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue