]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Add "array creation" tests to increase coverage
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 30 Dec 2020 13:50:05 +0000 (14:50 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 30 Dec 2020 13:50:05 +0000 (14:50 +0100)
tests/Makefile.am
tests/arrays/length-no-int-type.test [new file with mode: 0644]

index 89bb89dcd5899c20329c5aa6bd3676242e6c6bde..67ec8aeb756a1fd2bfcd4347a1896550d04c0e6f 100644 (file)
@@ -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 (file)
index 0000000..ab56fd6
--- /dev/null
@@ -0,0 +1,5 @@
+Invalid Code
+
+void main () {
+       var foo = new int["foo"];
+}