Disassembler skeleton
This commit is contained in:
20
test/disasm_test.go
Normal file
20
test/disasm_test.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package test
|
||||
|
||||
import "testing"
|
||||
|
||||
import "github.com/firestuff/subcoding/asm"
|
||||
|
||||
func TestRoundTrip(t *testing.T) {
|
||||
prog, err := asm.AssembleString(`
|
||||
functions:
|
||||
- - [nop]
|
||||
`)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
_, err = asm.Disassemble(prog)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user