[vala/0.50] tests: Add "array creation" tests to increase coverage



commit bf1088ee489d87e5939408337a59ad32ae83beff
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 9f55a3162..6abc62ddf 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -118,6 +118,7 @@ TESTS = \
        arrays/in-operator-with-boxed-needle.vala \
        arrays/length-inline-assignment.vala \
        arrays/length-type-include.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]