[vala/staging] tests: Add regression test for genie struct construction
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] tests: Add regression test for genie struct construction
- Date: Tue, 3 Sep 2019 10:11:15 +0000 (UTC)
commit d4f1dd4104b448dc4ad702d6d64c8361c2adb89c
Author: Jeremy Philippe <jeremy philippe gmail com>
Date: Tue Sep 3 03:36:49 2019 +0200
tests: Add regression test for genie struct construction
tests/Makefile.am | 1 +
tests/genie/struct.gs | 9 +++++++++
2 files changed, 10 insertions(+)
---
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 = ""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]