fspl/generator/function_test.go
2023-11-23 00:02:00 -05:00

18 lines
240 B
Go

package generator
import "testing"
func TestFunction (test *testing.T) {
testString (test,
`
`,
`
[puts string:*Byte]:I32
[main argc:I32 argv:**Byte]:I32 = {
[puts [. argv]]
0
}
`)
}
// [write 1 (* 72 101 108 108 111 114 108 100 0) 7]