[gxml] GomDate: More test cases
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] GomDate: More test cases
- Date: Tue, 28 Mar 2017 00:05:03 +0000 (UTC)
commit 84bb494735ab20edc9aba25aa252f3263a84050c
Author: Daniel Espinosa <esodan gmail com>
Date: Mon Mar 27 18:03:59 2017 -0600
GomDate: More test cases
test/GomSerializationTest.vala | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/test/GomSerializationTest.vala b/test/GomSerializationTest.vala
index 9972808..1132e0d 100644
--- a/test/GomSerializationTest.vala
+++ b/test/GomSerializationTest.vala
@@ -497,8 +497,11 @@ class GomSerializationTest : GXmlTest {
assert (t.pay_date.value == "2075-03-17");
s = t.to_string ();
assert (s != null);
- message (t.pay_date.value);
assert ("PayDate=\"2075-03-17\"" in s);
+ var gd = new GomDate ();
+ gd.value = "2076-03-17";
+ assert (gd.get_date ().valid ());
+ assert (gd.value == "2076-03-17");
});
Test.add_func ("/gxml/gom-serialization/read/property-date", () => {
try {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]