[vala/0.44] tests: Add "main block" parser test to increase coverage
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.44] tests: Add "main block" parser test to increase coverage
- Date: Sat, 5 Oct 2019 12:08:59 +0000 (UTC)
commit 9cddcc4ecd96d8d4398b4fb516081e6e2e7e1872
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 2e79b6037..bbe340fb7 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -553,6 +553,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]