Lines Matching refs:self
76 def description_suffix(self) -> str: argument
81 def description(self) -> str: argument
88 if not self.case_description:
89 self.case_description = "{} {} {}".format(
90 self.value_description(self.arg_a),
91 self.symbol,
92 self.value_description(self.arg_b)
94 description_suffix = self.description_suffix()
96 self.case_description += " " + description_suffix
137 def __init__(self, val_a, val_b) -> None: argument
139 self._result = int(self.int_a > self.int_b) - int(self.int_a < self.int_b)
140 self.symbol = ["<", "==", ">"][self._result + 1]
142 def result(self) -> List[str]: argument
143 return [str(self._result)]
152 def __init__(self, val_a, val_b) -> None: argument
169 def __init__(self, val_a: str, val_b: str) -> None: argument
171 self._result = self.int_a + self.int_b
173 def description_suffix(self) -> str: argument
174 if (self.int_a >= 0 and self.int_b >= 0):
176 if (self.int_a <= 0 and self.int_b <= 0):
179 return ", result{}0".format('>' if self._result > 0 else
180 '<' if self._result < 0 else '=')
182 def result(self) -> List[str]: argument
183 return [bignum_common.quote_str("{:x}".format(self._result))]