[tracker/wip/carlosg/unbound-vars: 3/3] tests: Add tests for unbound variables
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/unbound-vars: 3/3] tests: Add tests for unbound variables
- Date: Sun, 30 Aug 2020 21:26:43 +0000 (UTC)
commit f2a977c3b6c8a683989249e2c74b2f7aa30205d4
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Aug 29 15:13:34 2020 +0200
tests: Add tests for unbound variables
tests/libtracker-data/tracker-sparql-test.c | 5 +++++
tests/libtracker-data/unbound/unbound-1.out | 1 +
tests/libtracker-data/unbound/unbound-1.rq | 1 +
tests/libtracker-data/unbound/unbound-2.out | 2 ++
tests/libtracker-data/unbound/unbound-2.rq | 1 +
tests/libtracker-data/unbound/unbound-3.out | 1 +
tests/libtracker-data/unbound/unbound-3.rq | 1 +
tests/libtracker-data/unbound/unbound-4.out | 2 ++
tests/libtracker-data/unbound/unbound-4.rq | 1 +
tests/libtracker-data/unbound/unbound-5.out | 0
tests/libtracker-data/unbound/unbound-5.rq | 1 +
11 files changed, 16 insertions(+)
---
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index ff20def91..ca36c3798 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -84,6 +84,11 @@ const TestInfo tests[] = {
{ "bnode/query-5", "bnode/data", FALSE },
{ "bnode-coreference/query", "bnode-coreference/data", FALSE },
{ "bound/bound1", "bound/data", FALSE },
+ { "unbound/unbound-1", "unbound/data", FALSE },
+ { "unbound/unbound-2", "unbound/data", FALSE },
+ { "unbound/unbound-3", "unbound/data", FALSE },
+ { "unbound/unbound-4", "unbound/data", FALSE },
+ { "unbound/unbound-5", "unbound/data", FALSE },
{ "construct/construct-where", "construct/data", FALSE },
{ "construct/construct-pattern", "construct/data", FALSE },
{ "construct/construct-with-modifiers", "construct/data", FALSE },
diff --git a/tests/libtracker-data/unbound/unbound-1.out b/tests/libtracker-data/unbound/unbound-1.out
new file mode 100644
index 000000000..8b1378917
--- /dev/null
+++ b/tests/libtracker-data/unbound/unbound-1.out
@@ -0,0 +1 @@
+
diff --git a/tests/libtracker-data/unbound/unbound-1.rq b/tests/libtracker-data/unbound/unbound-1.rq
new file mode 100644
index 000000000..ad775ebdb
--- /dev/null
+++ b/tests/libtracker-data/unbound/unbound-1.rq
@@ -0,0 +1 @@
+SELECT ?x { }
diff --git a/tests/libtracker-data/unbound/unbound-2.out b/tests/libtracker-data/unbound/unbound-2.out
new file mode 100644
index 000000000..139597f9c
--- /dev/null
+++ b/tests/libtracker-data/unbound/unbound-2.out
@@ -0,0 +1,2 @@
+
+
diff --git a/tests/libtracker-data/unbound/unbound-2.rq b/tests/libtracker-data/unbound/unbound-2.rq
new file mode 100644
index 000000000..fdbf6a33b
--- /dev/null
+++ b/tests/libtracker-data/unbound/unbound-2.rq
@@ -0,0 +1 @@
+SELECT ?x { { } UNION { } }
\ No newline at end of file
diff --git a/tests/libtracker-data/unbound/unbound-3.out b/tests/libtracker-data/unbound/unbound-3.out
new file mode 100644
index 000000000..8b1378917
--- /dev/null
+++ b/tests/libtracker-data/unbound/unbound-3.out
@@ -0,0 +1 @@
+
diff --git a/tests/libtracker-data/unbound/unbound-3.rq b/tests/libtracker-data/unbound/unbound-3.rq
new file mode 100644
index 000000000..d4c976f98
--- /dev/null
+++ b/tests/libtracker-data/unbound/unbound-3.rq
@@ -0,0 +1 @@
+SELECT ?x { BIND (?a AS ?x) }
diff --git a/tests/libtracker-data/unbound/unbound-4.out b/tests/libtracker-data/unbound/unbound-4.out
new file mode 100644
index 000000000..25cadbeeb
--- /dev/null
+++ b/tests/libtracker-data/unbound/unbound-4.out
@@ -0,0 +1,2 @@
+
+"1"
diff --git a/tests/libtracker-data/unbound/unbound-4.rq b/tests/libtracker-data/unbound/unbound-4.rq
new file mode 100644
index 000000000..cc3e0912b
--- /dev/null
+++ b/tests/libtracker-data/unbound/unbound-4.rq
@@ -0,0 +1 @@
+SELECT ?x { { } UNION { BIND (1 AS ?x) } }
diff --git a/tests/libtracker-data/unbound/unbound-5.out b/tests/libtracker-data/unbound/unbound-5.out
new file mode 100644
index 000000000..e69de29bb
diff --git a/tests/libtracker-data/unbound/unbound-5.rq b/tests/libtracker-data/unbound/unbound-5.rq
new file mode 100644
index 000000000..260e25c04
--- /dev/null
+++ b/tests/libtracker-data/unbound/unbound-5.rq
@@ -0,0 +1 @@
+SELECT ?x { FILTER (?x = 42) }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]