(self)
| 378 | assert "WS[]" in fpgm |
| 379 | |
| 380 | def test_array_write_expr_index(self) -> None: |
| 381 | src = """\ |
| 382 | var i: int = 0 |
| 383 | array buf[10] |
| 384 | func test(): |
| 385 | buf[i] = 99 |
| 386 | """ |
| 387 | result = _compile(src) |
| 388 | fpgm = result["fpgm"] |
| 389 | assert "RS[]" in fpgm # read i |
| 390 | assert "WS[]" in fpgm # write buf[i] |
| 391 | |
| 392 | |
| 393 | # =========================================================================== |
nothing calls this directly
no test coverage detected