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



commit 218b83f98b2510f696d7557a457fde8000a807cf
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 89bb89dcd..67ec8aeb7 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -119,6 +119,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]