[tracker/wip/carlosg/fixes-for-music] tests: Add test for resource to string casts in select arguments



commit 5cecb7ecdbbd2f4624ea7fbdab9d9ec9d0f7d6d9
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Nov 17 15:24:49 2018 +0100

    tests: Add test for resource to string casts in select arguments

 tests/libtracker-data/basic/urn-in-as.out   | 1 +
 tests/libtracker-data/basic/urn-in-as.rq    | 1 +
 tests/libtracker-data/tracker-sparql-test.c | 1 +
 3 files changed, 3 insertions(+)
---
diff --git a/tests/libtracker-data/basic/urn-in-as.out b/tests/libtracker-data/basic/urn-in-as.out
new file mode 100644
index 000000000..9da75833b
--- /dev/null
+++ b/tests/libtracker-data/basic/urn-in-as.out
@@ -0,0 +1 @@
+"http://www.w3.org/2001/XMLSchema#string";      "http://www.w3.org/2001/XMLSchema#string";       
"http://www.w3.org/2001/XMLSchema#string";
\ No newline at end of file
diff --git a/tests/libtracker-data/basic/urn-in-as.rq b/tests/libtracker-data/basic/urn-in-as.rq
new file mode 100644
index 000000000..e56504bf4
--- /dev/null
+++ b/tests/libtracker-data/basic/urn-in-as.rq
@@ -0,0 +1 @@
+SELECT (xsd:string AS ?a) xsd:string AS ?b 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 dc65eb0c4..372b80548 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -73,6 +73,7 @@ const TestInfo tests[] = {
        { "basic/predicate-variable-2", "basic/data-1", FALSE },
        { "basic/predicate-variable-3", "basic/data-1", FALSE },
        { "basic/predicate-variable-4", "basic/data-1", FALSE },
+       { "basic/urn-in-as", "basic/data-1", FALSE },
        { "bnode/query-1", "bnode/data", FALSE },
        { "bnode/query-2", "bnode/data", FALSE },
        { "bnode/query-3", "bnode/data", FALSE },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]