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

Function TestParseST

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

Source from the content-addressed store, hash-verified

103}
104
105func TestParseST(t *testing.T) {
106 input := `
107 ST R0, R1
108 ST R1,R0
109 ST R2, R3
110 `
111
112 expected := []Instruction{STORE{REG0, REG1}, STORE{REG1, REG0}, STORE{REG2, REG3}}
113
114 testParseInstructions(input, expected, t)
115}
116
117func TestParseXOR(t *testing.T) {
118 input := `

Callers

nothing calls this directly

Calls 1

testParseInstructionsFunction · 0.85

Tested by

no test coverage detected