Added basic test case for functions

This commit is contained in:
2022-10-18 15:00:17 -04:00
parent 3067b64f47
commit 2a1a48d9c5
3 changed files with 29 additions and 0 deletions

3
analyzer/func-section.go Normal file
View File

@@ -0,0 +1,3 @@
package analyzer
// TODO

View File

@@ -0,0 +1,18 @@
package analyzer
import "testing"
func TestFuncSection (test *testing.T) {
checkTree ("../tests/analyzer/funcSection", false,
`
typeSection ro ../tests/analyzer/funcSection.aCString
type 1 pointer {Int}
funcSection ro ../tests/analyzer/funcSection.bArbitrary
block
arbitraryPhrase
command 'puts'
cast
type aCString
arg string 'hellorld` + "\000" + `'
`, test)
}