(t *testing.T)
| 127 | } |
| 128 | |
| 129 | func TestParseCMP(t *testing.T) { |
| 130 | input := ` |
| 131 | CMP R0, R1 |
| 132 | CMP R1,R0 |
| 133 | CMP R2, R3 |
| 134 | ` |
| 135 | |
| 136 | expected := []Instruction{CMP{REG0, REG1}, CMP{REG1, REG0}, CMP{REG2, REG3}} |
| 137 | |
| 138 | testParseInstructions(input, expected, t) |
| 139 | } |
| 140 | |
| 141 | func TestParseOR(t *testing.T) { |
| 142 | input := ` |
nothing calls this directly
no test coverage detected