From e82afa5cf68df11d1b9db09c68379ea4aaa47ea6 Mon Sep 17 00:00:00 2001 From: Richard Schwarting Date: Tue, 6 Aug 2013 16:24:07 +0200 Subject: [PATCH] SerializationTest.vala: disable a test, since we don't support that collection yet --- test/SerializationTest.vala | 53 ++++++++++++++++++++----------------- 1 file changed, 28 insertions(+), 25 deletions(-) diff --git a/test/SerializationTest.vala b/test/SerializationTest.vala index 933069e7..dbcd03e5 100644 --- a/test/SerializationTest.vala +++ b/test/SerializationTest.vala @@ -466,35 +466,38 @@ class SerializationTest : GXmlTest { test_serialization_deserialization (obj, "recursion", (GLib.EqualFunc)RecursiveProperty.equals, (StringifyFunc)RecursiveProperty.to_string); }); - Test.add_func ("/gxml/serialization/gee_collection_tree_set", () => { - Gee.TreeSet s = new Gee.TreeSet (); - - s.add ("stars"); - s.add ("Sterne"); - s.add ("etoile"); - - test_serialization_deserialization (s, "gee_collection_tree_set", - (ao, bo) => { // equals - Gee.TreeSet a = (Gee.TreeSet)ao; - Gee.TreeSet b = (Gee.TreeSet)bo; - - return (((Gee.Collection)a).contains_all (b) && ((Gee.Collection)b).contains_all (a)); - }, - (obj) => { // to_string - Gee.TreeSet tree_set = (Gee.TreeSet)obj; - - string str = "{ "; - foreach (string item in tree_set) { - str += "[" + item + "] "; - } - str += "}"; - return str; - }); - }); // TODO: more to do, for structs and stuff and things that interfaces if (auto_fields) { + /* This doesn't really belong here, but auto_fields should really change to future_tests, + as automatically serializing fields and GeeCollections are both currently not supported. */ + Test.add_func ("/gxml/serialization/gee_collection_tree_set", () => { + Gee.TreeSet s = new Gee.TreeSet (); + + s.add ("stars"); + s.add ("Sterne"); + s.add ("etoile"); + + test_serialization_deserialization (s, "gee_collection_tree_set", + (ao, bo) => { // equals + Gee.TreeSet a = (Gee.TreeSet)ao; + Gee.TreeSet b = (Gee.TreeSet)bo; + + return (((Gee.Collection)a).contains_all (b) && ((Gee.Collection)b).contains_all (a)); + }, + (obj) => { // to_string + Gee.TreeSet tree_set = (Gee.TreeSet)obj; + + string str = "{ "; + foreach (string item in tree_set) { + str += "[" + item + "] "; + } + str += "}"; + return str; + }); + }); + Test.message ("WARNING: thorough tests are expected to fail, as they test " + "feature not yet implemented, pertaining to automatic handling " + "of fields and private properties. You can achieve the same " + -- GitLab