Test case for data sections

This commit is contained in:
Sasha Koshka 2022-10-17 01:48:37 -04:00
parent d6c8f57a81
commit 82c868f0c1
1 changed files with 12 additions and 1 deletions

View File

@ -4,6 +4,17 @@ import "testing"
func TestDataSection (test *testing.T) {
checkTree ("../tests/analyzer/dataSection", false,
`
`dataSection ro ../tests/analyzer/dataSection.aBasicInt
type 1 basic Int
arg uint 5
dataSection ro ../tests/analyzer/dataSection.bRune
type 1 basic Int
arg string 'A'
dataSection ro ../tests/analyzer/dataSection.cString
type 1 basic String
arg string 'A very large bird'
dataSection ro ../tests/analyzer/dataSection.dCharBuffer
type 32 basic U8
arg string 'A very large bird` + "\000" + `'
`, test)
}