(self)
| 36 | assert self.emitter.label(BasicBlock(4)) == "CPyL4" |
| 37 | |
| 38 | def test_reg(self) -> None: |
| 39 | names: dict[Value, str] = {self.n: "n"} |
| 40 | emitter = Emitter(self.context, names) |
| 41 | assert emitter.reg(self.n) == "cpy_r_n" |
| 42 | |
| 43 | def test_object_annotation(self) -> None: |
| 44 | assert self.emitter.object_annotation("hello, world", "line;") == " /* 'hello, world' */" |