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.
2022-10-16 06:53:37 +00:00
|
|
|
package analyzer
|
|
|
|
|
|
|
|
import "testing"
|
|
|
|
|
|
|
|
func TestDataSection (test *testing.T) {
|
|
|
|
checkTree ("../tests/analyzer/dataSection", false,
|
2022-10-17 05:48:37 +00:00
|
|
|
`dataSection ro ../tests/analyzer/dataSection.aBasicInt
|
|
|
|
type 1 basic Int
|
2022-10-19 03:39:07 +00:00
|
|
|
uintLiteral 5
|
2022-10-17 05:48:37 +00:00
|
|
|
dataSection ro ../tests/analyzer/dataSection.bRune
|
|
|
|
type 1 basic Int
|
2022-10-19 03:39:07 +00:00
|
|
|
stringLiteral 'A'
|
2022-10-17 05:48:37 +00:00
|
|
|
dataSection ro ../tests/analyzer/dataSection.cString
|
|
|
|
type 1 basic String
|
2022-10-19 03:39:07 +00:00
|
|
|
stringLiteral 'A very large bird'
|
2022-10-17 05:48:37 +00:00
|
|
|
dataSection ro ../tests/analyzer/dataSection.dCharBuffer
|
|
|
|
type 32 basic U8
|
2022-10-19 03:39:07 +00:00
|
|
|
stringLiteral 'A very large bird` + "\000" + `'
|
2022-10-16 06:53:37 +00:00
|
|
|
`, test)
|
|
|
|
}
|