summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDr. Michael Lauer <mickey@vanille-media.de>2018-02-23 16:27:59 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2018-02-23 16:27:59 +0100
commit75bc6dddb9893607ef913191b91cf8969acf0a99 (patch)
tree4ce63e86c43f791c9110c294c56971a5bbee9eb4
parent32330196c74b66714b1607970d1059fbef533235 (diff)
downloadvala-75bc6dddb9893607ef913191b91cf8969acf0a99.tar.gz
tests: Extend "properties" tests to increase coverage
Based on test-case from https://bugzilla.gnome.org/show_bug.cgi?id=683160
-rw-r--r--tests/objects/properties.vala13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/objects/properties.vala b/tests/objects/properties.vala
index 3035b99d8..1a40e95e0 100644
--- a/tests/objects/properties.vala
+++ b/tests/objects/properties.vala
@@ -141,6 +141,19 @@ class Maman.Baz : Object, Ibaz {
}
}
+interface Maman.IBiz : Object {
+ public abstract int number { get; construct; }
+}
+
+abstract class Maman.ABiz : Object, IBiz {
+ public int number { get; construct; }
+ public abstract int number2 { get; construct; }
+}
+
+class Maman.Biz : ABiz {
+ public override int number2 { get; construct; }
+}
+
void main () {
Sample.main ();
}