[vala/0.40] tests: Add invalid "parser" tests to increase coverage
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] tests: Add invalid "parser" tests to increase coverage
- Date: Wed, 9 Oct 2019 17:34:30 +0000 (UTC)
commit 14c6a27e994f414fff591628ccd452f1d82e6b9c
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Sep 23 19:06:50 2019 +0200
tests: Add invalid "parser" tests to increase coverage
tests/Makefile.am | 1 +
tests/parser/creation-no-new.test | 9 +++++++++
2 files changed, 10 insertions(+)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index c0f969963..06cd35644 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -481,6 +481,7 @@ TESTS = \
parser/constructor-static-exists.test \
parser/continue-statement.vala \
parser/creation-no-abstract.test \
+ parser/creation-no-new.test \
parser/creation-no-override.test \
parser/creation-no-virtual.test \
parser/delegate-no-new.test \
diff --git a/tests/parser/creation-no-new.test b/tests/parser/creation-no-new.test
new file mode 100644
index 000000000..97f30ddfb
--- /dev/null
+++ b/tests/parser/creation-no-new.test
@@ -0,0 +1,9 @@
+Invalid Code
+
+public class Test {
+ new Test () {
+ }
+}
+
+void main () {
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]