[tracker/wip/carlosg/fix-blank-node-labels: 2/2] tests: Check blank node lifetimes in blank node test
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/fix-blank-node-labels: 2/2] tests: Check blank node lifetimes in blank node test
- Date: Mon, 18 May 2020 20:41:50 +0000 (UTC)
commit 853c98c0057c5ec20cab5c8ed9b2bc44050861c6
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon May 18 22:36:29 2020 +0200
tests: Check blank node lifetimes in blank node test
We have one blank node used across 2 updates in the same query string,
assert that those are the same, and different from the other blank node
label.
tests/libtracker-data/tracker-sparql-blank-test.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/tests/libtracker-data/tracker-sparql-blank-test.c
b/tests/libtracker-data/tracker-sparql-blank-test.c
index 8e385facb..bfacf7fa1 100644
--- a/tests/libtracker-data/tracker-sparql-blank-test.c
+++ b/tests/libtracker-data/tracker-sparql-blank-test.c
@@ -103,9 +103,13 @@ test_blank (TestInfo *info,
g_assert_cmpstr (solutions[1][0], ==, "foo");
g_assert (solutions[1][1] != NULL);
+ g_assert_cmpstr (solutions[0][1], ==, solutions[1][1]);
+
g_assert_cmpstr (solutions[2][0], ==, "bar");
g_assert (solutions[2][1] != NULL);
+ g_assert_cmpstr (solutions[2][1], !=, solutions[1][1]);
+
/* cleanup */
g_free (solutions[0][0]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]