Ran gofmt
This commit is contained in:
parent
b0068336cd
commit
a52e5d3426
|
@ -0,0 +1 @@
|
|||
package main
|
|
@ -118,7 +118,6 @@ func TestComparison(test *testing.T) {
|
|||
PUSH, 54,
|
||||
PUSH, 6,
|
||||
NEQ,
|
||||
|
||||
}, nil, test)
|
||||
|
||||
neqResult := machine.Pop()
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
package main
|
||||
|
@ -25,7 +26,9 @@ func main () {
|
|||
machine.Register(0, read)
|
||||
machine.Register(1, write)
|
||||
err := machine.Execute(0)
|
||||
if err != nil { panic(err.Error()) }
|
||||
if err != nil {
|
||||
panic(err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
func read(machine *cre.Machine[int]) (stop bool) {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
package main
|
||||
|
@ -127,7 +128,9 @@ func main () {
|
|||
machine.Register(1, write)
|
||||
|
||||
err := machine.Execute(0)
|
||||
if err != nil { panic(err.Error()) }
|
||||
if err != nil {
|
||||
panic(err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
func read(machine *cre.Machine[int]) (stop bool) {
|
||||
|
|
Loading…
Reference in New Issue