From 1c831c131ffca28bca0f3b2b29c7c7f4717babeb Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 20 Jan 2019 14:40:32 -0500 Subject: [PATCH] Test appdata date parsing Add a few dates to our appdata testdata, and verify the results. Closes: #2619 Approved by: alexlarsson --- tests/testcommon.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/testcommon.c b/tests/testcommon.c index 7e71f639..00fdc093 100644 --- a/tests/testcommon.c +++ b/tests/testcommon.c @@ -451,7 +451,7 @@ test_parse_appdata (void) " \n" " 64x64/org.gnome.gedit.png\n" " \n" - " \n" + " \n" /* 01-05-2018 */ " \n" " \n" ""; @@ -470,7 +470,9 @@ test_parse_appdata (void) " \n" " 64x64/org.gnome.gedit.png\n" " \n" - " \n" + " \n" + " \n" + " \n" " \n" " \n" " anything goes\n" @@ -504,7 +506,7 @@ test_parse_appdata (void) res = flatpak_parse_appdata (appdata2, "org.test.Hello", &names, &comments, &version, &license); g_assert_true (res); - g_assert_cmpstr (version, ==, "0.0.2"); + g_assert_cmpstr (version, ==, "0.1.0"); g_assert_cmpstr (license, ==, "anything goes"); g_assert_nonnull (names); g_assert_nonnull (comments);