Split packages
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
package assembler
|
package asm
|
||||||
|
|
||||||
import "fmt"
|
import "fmt"
|
||||||
import "strconv"
|
import "strconv"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package assembler
|
package asm
|
||||||
|
|
||||||
import "gopkg.in/yaml.v2"
|
import "gopkg.in/yaml.v2"
|
||||||
|
|
||||||
@@ -1,11 +1,12 @@
|
|||||||
package assembler
|
package test
|
||||||
|
|
||||||
import "testing"
|
import "testing"
|
||||||
|
|
||||||
|
import "github.com/firestuff/subcoding/asm"
|
||||||
import "github.com/firestuff/subcoding/vm"
|
import "github.com/firestuff/subcoding/vm"
|
||||||
|
|
||||||
func TestAssembleExecute(t *testing.T) {
|
func TestLoop(t *testing.T) {
|
||||||
prog, err := AssembleString(`
|
prog, err := asm.AssembleString(`
|
||||||
functions:
|
functions:
|
||||||
- - [add, f0, 1]
|
- - [add, f0, 1]
|
||||||
- [call, +1]
|
- [call, +1]
|
||||||
Reference in New Issue
Block a user