This repository has been archived on 2024-02-27. You can view files and clone it, but cannot push or open issues or pull requests.
arf/analyzer/data-section_test.go

21 lines
538 B
Go

package analyzer
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)
}