From 82c868f0c1363b8298bc031ac6bd3822e31e3e8d Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Mon, 17 Oct 2022 01:48:37 -0400 Subject: [PATCH] Test case for data sections --- analyzer/data-section_test.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/analyzer/data-section_test.go b/analyzer/data-section_test.go index d5c4e9d..1d08449 100644 --- a/analyzer/data-section_test.go +++ b/analyzer/data-section_test.go @@ -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) }