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

Function TestParseOR

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

Source from the content-addressed store, hash-verified

139}
140
141func 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
153func TestParseAND(t *testing.T) {
154 input := `

Callers

nothing calls this directly

Calls 1

testParseInstructionsFunction · 0.85

Tested by

no test coverage detected