[tracker/wip/carlosg/more-tests: 7/9] tests: Add 3-way alternative path test
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/more-tests: 7/9] tests: Add 3-way alternative path test
- Date: Sun, 13 Mar 2022 13:46:01 +0000 (UTC)
commit 38b337e06202419d2a50202981abc14aa5b9d1a2
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Mar 12 22:17:48 2022 +0100
tests: Add 3-way alternative path test
.../property-paths/alternative-path-3.out | 20 ++++++++++++++++++++
.../property-paths/alternative-path-3.rq | 1 +
tests/libtracker-data/tracker-sparql-test.c | 1 +
3 files changed, 22 insertions(+)
---
diff --git a/tests/libtracker-data/property-paths/alternative-path-3.out
b/tests/libtracker-data/property-paths/alternative-path-3.out
new file mode 100644
index 000000000..82644df37
--- /dev/null
+++ b/tests/libtracker-data/property-paths/alternative-path-3.out
@@ -0,0 +1,20 @@
+"Alice" "Alice"
+"Alice" "http://www.w3.org/2000/01/rdf-schema#Resource"
+"Alice" "http://xmlns.com/foaf/0.1/Agent"
+"Alice" "http://xmlns.com/foaf/0.1/Person"
+"Alice" "mailto:alice@work"
+"Bob" "Bob"
+"Bob" "http://www.w3.org/2000/01/rdf-schema#Resource"
+"Bob" "http://xmlns.com/foaf/0.1/Agent"
+"Bob" "http://xmlns.com/foaf/0.1/Person"
+"Bob" "mailto:bob@home"
+"Bob" "mailto:bob@work"
+"Eve" "Eve"
+"Eve" "http://www.w3.org/2000/01/rdf-schema#Resource"
+"Eve" "http://xmlns.com/foaf/0.1/Agent"
+"Eve" "http://xmlns.com/foaf/0.1/Person"
+"Fred" "Fred"
+"Fred" "http://www.w3.org/2000/01/rdf-schema#Resource"
+"Fred" "http://xmlns.com/foaf/0.1/Agent"
+"Fred" "http://xmlns.com/foaf/0.1/Person"
+"Fred" "mailto:fred@edu"
diff --git a/tests/libtracker-data/property-paths/alternative-path-3.rq
b/tests/libtracker-data/property-paths/alternative-path-3.rq
new file mode 100644
index 000000000..909619a28
--- /dev/null
+++ b/tests/libtracker-data/property-paths/alternative-path-3.rq
@@ -0,0 +1 @@
+select foaf:name(?u) ?a { ?u a foaf:Person . ?u rdf:type|foaf:mbox|foaf:name ?a } order by foaf:name(?u)
STR(?a)
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index df731a195..8dddd6a74 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -311,6 +311,7 @@ const TestInfo tests[] = {
{ "property-paths/recursive-path-3", "property-paths/data", FALSE },
{ "property-paths/alternative-path-1", "property-paths/data", FALSE },
{ "property-paths/alternative-path-2", "property-paths/data", FALSE },
+ { "property-paths/alternative-path-3", "property-paths/data", FALSE },
{ "property-paths/mixed-inverse-and-sequence-1", "property-paths/data", FALSE },
{ "property-paths/mixed-inverse-and-sequence-2", "property-paths/data", FALSE },
{ "property-paths/mixed-inverse-and-sequence-3", "property-paths/data", FALSE },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]