[vala/staging: 2/2] tests: Extend "properties" tests to increase coverage



commit 75bc6dddb9893607ef913191b91cf8969acf0a99
Author: Dr. Michael Lauer <mickey vanille-media de>
Date:   Fri Feb 23 16:27:59 2018 +0100

    tests: Extend "properties" tests to increase coverage
    
    Based on test-case from https://bugzilla.gnome.org/show_bug.cgi?id=683160

 tests/objects/properties.vala |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/tests/objects/properties.vala b/tests/objects/properties.vala
index 3035b99..1a40e95 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 ();
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]