(t *testing.T)
| 139 | } |
| 140 | |
| 141 | func TestParseOR(t *testing.T) { |
| 142 | input := ` |
| 143 | OR R0, R1 |
| 144 | OR R1,R0 |
| 145 | OR R2, R3 |
| 146 | ` |
| 147 | |
| 148 | expected := []Instruction{OR{REG0, REG1}, OR{REG1, REG0}, OR{REG2, REG3}} |
| 149 | |
| 150 | testParseInstructions(input, expected, t) |
| 151 | } |
| 152 | |
| 153 | func TestParseAND(t *testing.T) { |
| 154 | input := ` |
nothing calls this directly
no test coverage detected