()
| 287 | |
| 288 | |
| 289 | def test_call(): |
| 290 | dtype = rx.PrimStructInfo("int32") |
| 291 | func = rx.Var("func", rx.FuncStructInfo([dtype], dtype)) |
| 292 | arg = rx.Var("arg", dtype) |
| 293 | call = rx.Call(func, [arg]) |
| 294 | assert call.op.same_as(func) |
| 295 | assert len(call.args) == 1 |
| 296 | assert call.args[0].same_as(arg) |
| 297 | |
| 298 | |
| 299 | def test_call_raises_error_for_invalid_function(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…