[tracker/wip/carlosg/double-precision: 4/4] tests: Add test for double precision in deletes



commit 5a798b157c09b8a39bb5f23ab86f42e17e3ea3d9
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Mar 2 18:14:48 2019 +0100

    tests: Add test for double precision in deletes
    
    https://bugzilla.gnome.org/show_bug.cgi?id=659600

 tests/libtracker-data/tracker-sparql-test.c           |  1 +
 tests/libtracker-data/update/delete-where-3.rq        | 10 ++++++++++
 tests/libtracker-data/update/delete-where-query-3.out |  1 +
 tests/libtracker-data/update/delete-where-query-3.rq  |  1 +
 4 files changed, 13 insertions(+)
---
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index 68bd1f77b..f674782a2 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -180,6 +180,7 @@ const TestInfo tests[] = {
        { "update/delete-data-query-2", "update/delete-data-2", FALSE, TRUE },
        { "update/delete-where-query-1", "update/delete-where-1", FALSE, FALSE },
        { "update/delete-where-query-2", "update/delete-where-2", FALSE, FALSE },
+       { "update/delete-where-query-3", "update/delete-where-3", FALSE, FALSE },
        { "update/invalid-insert-where-query-1", "update/invalid-insert-where-1", FALSE, TRUE },
        { "update/delete-insert-where-query-1", "update/delete-insert-where-1", FALSE, FALSE },
        { "update/delete-insert-where-query-2", "update/delete-insert-where-2", FALSE, FALSE },
diff --git a/tests/libtracker-data/update/delete-where-3.rq b/tests/libtracker-data/update/delete-where-3.rq
new file mode 100644
index 000000000..503ac30e0
--- /dev/null
+++ b/tests/libtracker-data/update/delete-where-3.rq
@@ -0,0 +1,10 @@
+INSERT DATA {
+  example:a a example:A ;
+            example:double 0.333333333333333 .
+  example:b a example:A ;
+            example:double 0.444444444444444 .
+}
+
+DELETE WHERE {
+  example:a example:double ?o
+}
diff --git a/tests/libtracker-data/update/delete-where-query-3.out 
b/tests/libtracker-data/update/delete-where-query-3.out
new file mode 100644
index 000000000..14e945cec
--- /dev/null
+++ b/tests/libtracker-data/update/delete-where-query-3.out
@@ -0,0 +1 @@
+"http://example/b";     "0.444444444444444"
diff --git a/tests/libtracker-data/update/delete-where-query-3.rq 
b/tests/libtracker-data/update/delete-where-query-3.rq
new file mode 100644
index 000000000..ee1e9e4a9
--- /dev/null
+++ b/tests/libtracker-data/update/delete-where-query-3.rq
@@ -0,0 +1 @@
+SELECT ?s ?o { ?s example:double ?o }


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