[tracker/wip/carlosg/sparql-fixes: 4/6] tests: Add test for empty group patterns
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/sparql-fixes: 4/6] tests: Add test for empty group patterns
- Date: Thu, 27 Aug 2020 13:29:17 +0000 (UTC)
commit d881546fd3944132c086f51b8a11c8912e8f2c83
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Aug 27 13:29:43 2020 +0200
tests: Add test for empty group patterns
tests/libtracker-data/subqueries/subqueries-union-4.out | 2 ++
tests/libtracker-data/subqueries/subqueries-union-4.rq | 1 +
tests/libtracker-data/tracker-sparql-test.c | 1 +
3 files changed, 4 insertions(+)
---
diff --git a/tests/libtracker-data/subqueries/subqueries-union-4.out
b/tests/libtracker-data/subqueries/subqueries-union-4.out
new file mode 100644
index 000000000..9aac76e5b
--- /dev/null
+++ b/tests/libtracker-data/subqueries/subqueries-union-4.out
@@ -0,0 +1,2 @@
+"1"
+"1"
diff --git a/tests/libtracker-data/subqueries/subqueries-union-4.rq
b/tests/libtracker-data/subqueries/subqueries-union-4.rq
new file mode 100644
index 000000000..6d656adf3
--- /dev/null
+++ b/tests/libtracker-data/subqueries/subqueries-union-4.rq
@@ -0,0 +1 @@
+SELECT (1 AS ?a) { { } UNION { } }
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index ca2fd3dea..b7df4b1e9 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -196,6 +196,7 @@ const TestInfo tests[] = {
{ "subqueries/subqueries-union-1", "subqueries/data-1", FALSE },
{ "subqueries/subqueries-union-2", "subqueries/data-1", FALSE },
{ "subqueries/subqueries-union-3", "subqueries/data-1", FALSE },
+ { "subqueries/subqueries-union-4", "subqueries/data-1", FALSE },
{ "subqueries/subqueries-minus-1", "subqueries/data-1", FALSE },
{ "subqueries/subqueries-minus-2", "subqueries/data-1", FALSE },
{ "subqueries/subqueries-minus-3", "subqueries/data-1", FALSE },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]