From: Jeremy Philippe Date: Tue, 3 Sep 2019 01:36:49 +0000 (+0200) Subject: tests: Add regression test for genie struct construction X-Git-Tag: 0.46.0~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4f1dd4104b448dc4ad702d6d64c8361c2adb89c;p=thirdparty%2Fvala.git tests: Add regression test for genie struct construction --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 093ee5863..4ec47f0a7 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -829,6 +829,7 @@ GENIE_TESTS = \ genie/preparser.gs \ genie/preparser-not.gs \ genie/preparser-or-expression.gs \ + genie/struct.gs \ $(NULL) check-TESTS: $(TESTS) $(NON_NULL_TESTS) diff --git a/tests/genie/struct.gs b/tests/genie/struct.gs new file mode 100644 index 000000000..dee7cfd46 --- /dev/null +++ b/tests/genie/struct.gs @@ -0,0 +1,9 @@ +init + var a = Test() + assert( a.empty == "" ) + +struct Test + empty:string + + construct() + self.empty = ""