MCPcopy Create free account
hub / github.com/djhworld/simple-computer / TestParseCMP

Function TestParseCMP

asm/parse_test.go:129–139  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

127}
128
129func 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
141func TestParseOR(t *testing.T) {
142 input := `

Callers

nothing calls this directly

Calls 1

testParseInstructionsFunction · 0.85

Tested by

no test coverage detected