[vala/0.36] tests: Add "static fields" to compact class to increase coverage



commit 0661300fa953d39d2e0f440461349cb08209139d
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sat Nov 17 17:22:36 2018 +0100

    tests: Add "static fields" to compact class to increase coverage

 tests/objects/fields.vala | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/tests/objects/fields.vala b/tests/objects/fields.vala
index 96b66783e..db6329fe2 100644
--- a/tests/objects/fields.vala
+++ b/tests/objects/fields.vala
@@ -3,6 +3,8 @@ using GLib;
 [Compact]
 class CompactTest {
        public int initialized_field = 24;
+       private static int private_static_field = 25;
+       public static int public_static_field = 26;
 }
 
 class Maman.Foo : Object {
@@ -92,7 +94,7 @@ class Maman.Bar : Foo {
                var compact = new CompactTest ();
                stdout.printf (" %d", compact.initialized_field);
 
-               stdout.printf (" 25\n");
+               stdout.printf (" 27\n");
 
                return 0;
        }


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