[vala/0.42] tests: Add invalid "duplicating instance" test to increase coverage
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.42] tests: Add invalid "duplicating instance" test to increase coverage
- Date: Sun, 23 Sep 2018 09:06:35 +0000 (UTC)
commit 6cc4310ef2ef8aa54ad5f2133dc5c59f2ffe3ca5
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Fri Sep 21 16:22:56 2018 +0200
tests: Add invalid "duplicating instance" test to increase coverage
tests/Makefile.am | 1 +
tests/objects/duplicating-instance-invalid.test | 10 ++++++++++
2 files changed, 11 insertions(+)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index d71fb4650..12fa404cc 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -240,6 +240,7 @@ TESTS = \
objects/constructor-variadic.test \
objects/constructors.vala \
objects/destructors.vala \
+ objects/duplicating-instance-invalid.test \
objects/dynamic.vala \
objects/generics.vala \
objects/initially-unowned.vala \
diff --git a/tests/objects/duplicating-instance-invalid.test b/tests/objects/duplicating-instance-invalid.test
new file mode 100644
index 000000000..2f4ca3c89
--- /dev/null
+++ b/tests/objects/duplicating-instance-invalid.test
@@ -0,0 +1,10 @@
+Invalid Code
+
+[Compact]
+class Foo {
+}
+
+void main () {
+ Foo foo = new Foo ();
+ var foo_copy = foo;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]