[vala/0.40] tests: Add "array creation" tests to increase coverage
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] tests: Add "array creation" tests to increase coverage
- Date: Sun, 3 Jan 2021 12:46:52 +0000 (UTC)
commit 1aa9058607cff26d144b2fc7c6d9af888695809a
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Dec 30 14:50:05 2020 +0100
tests: Add "array creation" tests to increase coverage
tests/Makefile.am | 1 +
tests/arrays/length-no-int-type.test | 5 +++++
2 files changed, 6 insertions(+)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index eaf147097..bcc861152 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -93,6 +93,7 @@ TESTS = \
arrays/inline-struct-field.test \
arrays/in-operator-with-boxed-needle.vala \
arrays/length-inline-assignment.vala \
+ arrays/length-no-int-type.test \
arrays/struct-field-length-cname.vala \
arrays/struct-field-initializer.vala \
arrays/struct-namespaced-initializer.vala \
diff --git a/tests/arrays/length-no-int-type.test b/tests/arrays/length-no-int-type.test
new file mode 100644
index 000000000..ab56fd672
--- /dev/null
+++ b/tests/arrays/length-no-int-type.test
@@ -0,0 +1,5 @@
+Invalid Code
+
+void main () {
+ var foo = new int["foo"];
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]