[vala/0.52] tests: Add invalid "unary decrement" test to increase coverage
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.52] tests: Add invalid "unary decrement" test to increase coverage
- Date: Sun, 24 Oct 2021 13:13:07 +0000 (UTC)
commit 41b6ad77369b94b72e9f93378f014f42cce68640
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Oct 23 15:27:12 2021 +0200
tests: Add invalid "unary decrement" test to increase coverage
tests/Makefile.am | 1 +
tests/semantic/unary-unsupported-decrement.test | 9 +++++++++
2 files changed, 10 insertions(+)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index b7d710301..8bd6584a2 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1157,6 +1157,7 @@ TESTS = \
semantic/type-argument-ownership-mismatch.test \
semantic/unary-invalid-instance-member-access.test \
semantic/unary-unsupported-complement.test \
+ semantic/unary-unsupported-decrement.test \
semantic/unary-unsupported-increment.test \
semantic/unary-unsupported-minus.test \
semantic/unary-unsupported-negation.test \
diff --git a/tests/semantic/unary-unsupported-decrement.test b/tests/semantic/unary-unsupported-decrement.test
new file mode 100644
index 000000000..1cbd523ba
--- /dev/null
+++ b/tests/semantic/unary-unsupported-decrement.test
@@ -0,0 +1,9 @@
+Invalid Code
+
+int foo () {
+ return 23;
+}
+
+void main () {
+ ++foo ();
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]