[tracker/wip/carlosg/fix-tracker-search: 4/4] tests: Add test for coalesce behavior with URNs
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/fix-tracker-search: 4/4] tests: Add test for coalesce behavior with URNs
- Date: Sat, 17 Nov 2018 14:59:36 +0000 (UTC)
commit 93e340dbcd31b6e9fd0be61cf0994726093f4148
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Nov 17 15:57:40 2018 +0100
tests: Add test for coalesce behavior with URNs
tests/libtracker-data/functions/functions-coalesce-1.out | 1 +
tests/libtracker-data/functions/functions-coalesce-1.rq | 1 +
tests/libtracker-data/tracker-sparql-test.c | 1 +
3 files changed, 3 insertions(+)
---
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 1bfb5a4a4..8d6100416 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -110,6 +110,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 },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]