Files
subcoding/test/complex_test.go
2021-11-20 18:27:06 -10:00

20 lines
277 B
Go

package test
import "testing"
func TestLoop(t *testing.T) {
state := assembleAndExecute(t, `
global_memory_size: 4
function_memory_size: 4
functions:
- - [add, f0, 1]
- [call, +1]
- [ltu, f0, 3]
- [jmpt, -3]
- - [add, g0, 1]
`)
expectGlobalMemory(t, state, 0, 3)
}