[vala/0.44] tests: Add invalid "silent cast of array" test to increase coverage
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.44] tests: Add invalid "silent cast of array" test to increase coverage
- Date: Thu, 7 Nov 2019 11:19:37 +0000 (UTC)
commit ccfc0455a1e5162082d9df576687d4b1855a3841
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Oct 23 15:30:40 2019 +0200
tests: Add invalid "silent cast of array" test to increase coverage
tests/Makefile.am | 1 +
tests/arrays/cast-silent-invalid.test | 6 ++++++
2 files changed, 7 insertions(+)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 51ee4d41d..08e46cd05 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -69,6 +69,7 @@ TESTS = \
basic-types/bug777697.test \
basic-types/bug787152.vala \
basic-types/bug788775.vala \
+ arrays/cast-silent-invalid.test \
arrays/class-field-length-cname.vala \
arrays/expression-bracket.test \
arrays/field-global-length-cname.vala \
diff --git a/tests/arrays/cast-silent-invalid.test b/tests/arrays/cast-silent-invalid.test
new file mode 100644
index 000000000..6e7361567
--- /dev/null
+++ b/tests/arrays/cast-silent-invalid.test
@@ -0,0 +1,6 @@
+Invalid Code
+
+void main () {
+ void* foo = null;
+ unowned int[] bar = foo as int[];
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]