You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: generate_stubs.py
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -212,8 +212,10 @@ def {sig}:{doc}
212
212
TWO_ARGS_EQUAL__EITHER=regex.compile(rf'^- +If `x1_i` is {_value} and `x2_i` is either {_value} or {_value}, the result is {_value}\.$'),
213
213
TWO_ARGS_EITHER__EITHER=regex.compile(rf'^- +If `x1_i` is either {_value} or {_value} and `x2_i` is either {_value} or {_value}, the result is {_value}\.$'),
214
214
TWO_ARGS_SAME_SIGN=regex.compile(rf'^- +If `x1_i` and `x2_i` have the same mathematical sign, the result has a {_value}\.$'),
215
+
TWO_ARGS_SAME_SIGN_EXCEPT=regex.compile(rf'^- +If `x1_i` and `x2_i` have the same mathematical sign, the result has a {_value}, except where it is {_value} as in the rules below\.$'),
215
216
TWO_ARGS_SAME_SIGN_BOTH=regex.compile(rf'^- +If `x1_i` and `x2_i` have the same mathematical sign and are both {_value}, the result has a {_value}\.$'),
216
217
TWO_ARGS_DIFFERENT_SIGNS=regex.compile(rf'^- +If `x1_i` and `x2_i` have different mathematical signs, the result has a {_value}\.$'),
218
+
TWO_ARGS_DIFFERENT_SIGNS_EXCEPT=regex.compile(rf'^- +If `x1_i` and `x2_i` have different mathematical signs, the result has a {_value}, except where it is {_value} as in the rules below\.$'),
217
219
TWO_ARGS_DIFFERENT_SIGNS_BOTH=regex.compile(rf'^- +If `x1_i` and `x2_i` have different mathematical signs and are both {_value}, the result has a {_value}\.$'),
218
220
TWO_ARGS_EVEN_IF=regex.compile(rf'^- +If `x2_i` is {_value}, the result is {_value}, even if `x1_i` is {_value}\.$'),
219
221
@@ -483,6 +485,11 @@ def generate_special_case_test(func, typ, m, test_name_extra, sigs):
0 commit comments