Imported Upstream version 1.2.4
[platform/upstream/json-glib.git] / json-glib / tests / gvariant.c
index 701997d..e88b1b9 100644 (file)
@@ -45,7 +45,7 @@ static const TestCase two_way_test_cases[] =
     { "/double", "(d)", "(1.23,)", "[1.23]" },
 
     /* double */
-    { "/double-whole", "(d)", "(123.0,)", "[123]" },
+    { "/double-whole", "(d)", "(123.0,)", "[123.0]" },
 
     /* string */
     { "/string", "(s)", "('hello world!',)", "[\"hello world!\"]" },
@@ -158,7 +158,7 @@ static const TestCase json_to_gvariant_test_cases[] =
     { "/string-to-int64", "(x)", "(int64 -666999666999,)", "[\"-666999666999\"]" },
     { "/string-to-uint64", "(t)", "(uint64 1999999999999999,)", "[\"1999999999999999\"]" },
     { "/string-to-double", "(d)", "(1.23,)", "[\"1.23\"]" },
-    { "/string-to-double-whole", "(d)", "(123.0,)", "[\"123\"]" },
+    { "/string-to-double-whole", "(d)", "(123.0,)", "[\"123.0\"]" },
   };
 
 static void