From: Rico Tzschichholz Date: Mon, 27 Nov 2023 21:23:04 +0000 (+0100) Subject: tests: Add invalid "array length type" test to increase coverage X-Git-Tag: 0.56.15~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5887511568d95a41dd11b05982bf32ac097aa401;p=thirdparty%2Fvala.git tests: Add invalid "array length type" test to increase coverage --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 90dacfefd..2ca281876 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -141,6 +141,7 @@ TESTS = \ arrays/length-inline-assignment.vala \ arrays/length-type.vala \ arrays/length-type-include.vala \ + arrays/length-type-no-integer.test \ arrays/length-no-int-type.test \ arrays/struct-field-length-cname.vala \ arrays/struct-field-initializer.vala \ diff --git a/tests/arrays/length-type-no-integer.test b/tests/arrays/length-type-no-integer.test new file mode 100644 index 000000000..7e900bf54 --- /dev/null +++ b/tests/arrays/length-type-no-integer.test @@ -0,0 +1,5 @@ +Invalid Code + +void main () { + int[:float] foo; +}