[vala/0.48] tests: Add "array creation" tests to increase coverage
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.48] tests: Add "array creation" tests to increase coverage
- Date: Sun, 3 Jan 2021 11:31:49 +0000 (UTC)
commit 350a13f3aaa817968c693e79659341bf5e6e17e1
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 c95dfc45f..75bfb56e2 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -118,6 +118,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]