@@ -138,10 +138,10 @@ def unary_assert_against_refimpl(
138
138
res : Array ,
139
139
refimpl : Callable [[T ], T ],
140
140
* ,
141
- expr_template : Optional [str ] = None ,
142
141
res_stype : Optional [ScalarType ] = None ,
143
142
filter_ : Callable [[Scalar ], bool ] = default_filter ,
144
143
strict_check : Optional [bool ] = None ,
144
+ expr_template : Optional [str ] = None ,
145
145
):
146
146
if in_ .shape != res .shape :
147
147
raise ValueError (f"{ res .shape = } , but should be { in_ .shape = } " )
@@ -186,13 +186,13 @@ def binary_assert_against_refimpl(
186
186
res : Array ,
187
187
refimpl : Callable [[T , T ], T ],
188
188
* ,
189
- expr_template : Optional [str ] = None ,
190
189
res_stype : Optional [ScalarType ] = None ,
190
+ filter_ : Callable [[Scalar ], bool ] = default_filter ,
191
+ strict_check : Optional [bool ] = None ,
191
192
left_sym : str = "x1" ,
192
193
right_sym : str = "x2" ,
193
194
res_name : str = "out" ,
194
- filter_ : Callable [[Scalar ], bool ] = default_filter ,
195
- strict_check : Optional [bool ] = None ,
195
+ expr_template : Optional [str ] = None ,
196
196
):
197
197
if expr_template is None :
198
198
expr_template = func_name + "({}, {})={}"
@@ -237,12 +237,12 @@ def right_scalar_assert_against_refimpl(
237
237
res : Array ,
238
238
refimpl : Callable [[T , T ], T ],
239
239
* ,
240
- expr_template : str = None ,
241
240
res_stype : Optional [ScalarType ] = None ,
242
- left_sym : str = "x1" ,
243
- res_name : str = "out" ,
244
241
filter_ : Callable [[Scalar ], bool ] = default_filter ,
245
242
strict_check : Optional [bool ] = None ,
243
+ left_sym : str = "x1" ,
244
+ res_name : str = "out" ,
245
+ expr_template : str = None ,
246
246
):
247
247
if filter_ (right ):
248
248
return # short-circuit here as there will be nothing to test
0 commit comments