[gnome-software] trivial: Add a unit test for gs_app_get_id_no_prefix()
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Add a unit test for gs_app_get_id_no_prefix()
- Date: Thu, 19 May 2016 16:00:21 +0000 (UTC)
commit a431969b196fcdb8c1e9e67f736243111117b474
Author: Richard Hughes <richard hughsie com>
Date: Thu May 19 17:00:01 2016 +0100
trivial: Add a unit test for gs_app_get_id_no_prefix()
src/gs-self-test.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-self-test.c b/src/gs-self-test.c
index db8aaca..cc1882a 100644
--- a/src/gs-self-test.c
+++ b/src/gs-self-test.c
@@ -159,10 +159,11 @@ gs_app_func (void)
{
g_autoptr(GsApp) app = NULL;
- app = gs_app_new ("gnome-software");
+ app = gs_app_new ("flatpak:gnome-software");
g_assert (GS_IS_APP (app));
- g_assert_cmpstr (gs_app_get_id (app), ==, "gnome-software");
+ g_assert_cmpstr (gs_app_get_id (app), ==, "flatpak:gnome-software");
+ g_assert_cmpstr (gs_app_get_id_no_prefix (app), ==, "gnome-software");
/* check we clean up the version, but not at the expense of having
* the same string as the update version */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]