[gxml/gsoc2013] SerializationTest.vala: disable a test, since we don't support that collection yet
- From: Richard Hans Schwarting <rschwart src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml/gsoc2013] SerializationTest.vala: disable a test, since we don't support that collection yet
- Date: Tue, 6 Aug 2013 14:24:29 +0000 (UTC)
commit e82afa5cf68df11d1b9db09c68379ea4aaa47ea6
Author: Richard Schwarting <aquarichy gmail com>
Date: Tue Aug 6 16:24:07 2013 +0200
SerializationTest.vala: disable a test, since we don't support that collection yet
test/SerializationTest.vala | 53 ++++++++++++++++++++++--------------------
1 files changed, 28 insertions(+), 25 deletions(-)
---
diff --git a/test/SerializationTest.vala b/test/SerializationTest.vala
index 933069e..dbcd03e 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<string> s = new Gee.TreeSet<string> ();
-
- s.add ("stars");
- s.add ("Sterne");
- s.add ("etoile");
-
- test_serialization_deserialization (s, "gee_collection_tree_set",
- (ao, bo) => { // equals
- Gee.TreeSet<string> a =
(Gee.TreeSet<string>)ao;
- Gee.TreeSet<string> b =
(Gee.TreeSet<string>)bo;
-
- return
(((Gee.Collection)a).contains_all (b) && ((Gee.Collection)b).contains_all (a));
- },
- (obj) => { // to_string
- Gee.TreeSet<string> tree_set =
(Gee.TreeSet<string>)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<string> s = new Gee.TreeSet<string> ();
+
+ s.add ("stars");
+ s.add ("Sterne");
+ s.add ("etoile");
+
+ test_serialization_deserialization (s, "gee_collection_tree_set",
+ (ao, bo) => { // equals
+ Gee.TreeSet<string> a =
(Gee.TreeSet<string>)ao;
+ Gee.TreeSet<string> b =
(Gee.TreeSet<string>)bo;
+
+ return
(((Gee.Collection)a).contains_all (b) && ((Gee.Collection)b).contains_all (a));
+ },
+ (obj) => { // to_string
+ Gee.TreeSet<string>
tree_set = (Gee.TreeSet<string>)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 " +
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]