[vala/staging: 5/8] tests: Add "main block" parser test to increase coverage
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging: 5/8] tests: Add "main block" parser test to increase coverage
- Date: Tue, 24 Sep 2019 11:51:47 +0000 (UTC)
commit 5504248474be88ce8105ae448fa258a9c40d9197
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Sep 24 12:28:44 2019 +0200
tests: Add "main block" parser test to increase coverage
tests/Makefile.am | 1 +
tests/parser/main-block.vala | 2 ++
2 files changed, 3 insertions(+)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 2b29ac7ae..4eb13b120 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -558,6 +558,7 @@ TESTS = \
parser/inner-array-size.test \
parser/invalid-brace.test \
parser/lock-statement.vala \
+ parser/main-block.vala \
parser/method-no-abstract-override.test \
parser/method-no-abstract-virtual-override.test \
parser/method-no-abstract-virtual.test \
diff --git a/tests/parser/main-block.vala b/tests/parser/main-block.vala
new file mode 100644
index 000000000..533f477a6
--- /dev/null
+++ b/tests/parser/main-block.vala
@@ -0,0 +1,2 @@
+var i = 42;
+assert (i == 42);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]