summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2018-11-17 15:57:40 +0100
committerCarlos Garnacho <carlosg@gnome.org>2018-11-17 16:28:53 +0100
commitf0b22f553b9ef944e6ff13fa8e34e9e6b81c8fa6 (patch)
treef19901a260cce33bc1f1d6bf76725343757fea74
parent311f947c86df14d5d7b725b0105a9b3881e90b66 (diff)
downloadtracker-wip/carlosg/fix-tracker-search.tar.gz
tests: Add test for coalesce behavior with URNswip/carlosg/fix-tracker-search
-rw-r--r--tests/libtracker-data/functions/functions-coalesce-1.out1
-rw-r--r--tests/libtracker-data/functions/functions-coalesce-1.rq1
-rw-r--r--tests/libtracker-data/tracker-sparql-test.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/tests/libtracker-data/functions/functions-coalesce-1.out b/tests/libtracker-data/functions/functions-coalesce-1.out
new file mode 100644
index 000000000..eb046bba9
--- /dev/null
+++ b/tests/libtracker-data/functions/functions-coalesce-1.out
@@ -0,0 +1 @@
+"http://www.w3.org/2001/XMLSchema#string" "foo" "http://www.w3.org/2001/XMLSchema#string" "bar"
diff --git a/tests/libtracker-data/functions/functions-coalesce-1.rq b/tests/libtracker-data/functions/functions-coalesce-1.rq
new file mode 100644
index 000000000..9fbec1daa
--- /dev/null
+++ b/tests/libtracker-data/functions/functions-coalesce-1.rq
@@ -0,0 +1 @@
+SELECT COALESCE(xsd:string, "foo") COALESCE("foo", xsd:string) tracker:coalesce(xsd:string, "bar") tracker:coalesce("bar", xsd:string) {} \ No newline at end of file
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index 372b80548..3982fc125 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -111,6 +111,7 @@ const TestInfo tests[] = {
{ "functions/functions-xpath-12", "functions/data-4", FALSE },
{ "functions/functions-xpath-13", "functions/data-4", FALSE },
{ "functions/functions-xpath-14", "functions/data-4", FALSE },
+ { "functions/functions-coalesce-1", "functions/data-1", FALSE },
{ "graph/graph-1", "graph/data-1", FALSE },
{ "graph/graph-2", "graph/data-2", FALSE },
{ "graph/graph-3", "graph/data-3", FALSE },