From: Rico Tzschichholz Date: Wed, 30 Dec 2020 13:50:05 +0000 (+0100) Subject: tests: Add "array creation" tests to increase coverage X-Git-Tag: 0.51.1~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=218b83f98b2510f696d7557a457fde8000a807cf;p=thirdparty%2Fvala.git tests: Add "array creation" tests to increase coverage --- 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"]; +}