]> 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>
Sun, 3 Jan 2021 12:26:41 +0000 (13:26 +0100)
tests/Makefile.am
tests/arrays/length-no-int-type.test [new file with mode: 0644]

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