[tracker/wip/carlosg/property-paths: 1/6] tests: Ensure ordering in property path tests



commit e3ac14b5674045c6e529a6fb6cfc93f49252d099
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Dec 25 14:10:19 2018 +0100

    tests: Ensure ordering in property path tests
    
    So we don't implicitly rely on the query/implementation underneath.

 tests/libtracker-data/property-paths/inverse-path-1.out | 2 +-
 tests/libtracker-data/property-paths/inverse-path-1.rq  | 2 +-
 tests/libtracker-data/property-paths/sequence-path-1.rq | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/libtracker-data/property-paths/inverse-path-1.out 
b/tests/libtracker-data/property-paths/inverse-path-1.out
index 0a9f74d4f..9f47bc3b5 100644
--- a/tests/libtracker-data/property-paths/inverse-path-1.out
+++ b/tests/libtracker-data/property-paths/inverse-path-1.out
@@ -1,3 +1,3 @@
-"Bob"  "Alice"
 "Alice"        "Bob"
+"Bob"  "Alice"
 "Fred" "Eve"
diff --git a/tests/libtracker-data/property-paths/inverse-path-1.rq 
b/tests/libtracker-data/property-paths/inverse-path-1.rq
index 1aaf070ce..6b643dfd7 100644
--- a/tests/libtracker-data/property-paths/inverse-path-1.rq
+++ b/tests/libtracker-data/property-paths/inverse-path-1.rq
@@ -1 +1 @@
-select foaf:name(?a) foaf:name(?b) { ?a ^foaf:knows ?b }
\ No newline at end of file
+select foaf:name(?a) foaf:name(?b) { ?a ^foaf:knows ?b } order by foaf:name(?a) foaf:name(?b)
\ No newline at end of file
diff --git a/tests/libtracker-data/property-paths/sequence-path-1.rq 
b/tests/libtracker-data/property-paths/sequence-path-1.rq
index 8900f9d99..a703adf55 100644
--- a/tests/libtracker-data/property-paths/sequence-path-1.rq
+++ b/tests/libtracker-data/property-paths/sequence-path-1.rq
@@ -1 +1 @@
-select foaf:name(?a) foaf:name(?b) { ?a foaf:knows/foaf:knows ?b }
\ No newline at end of file
+select foaf:name(?a) foaf:name(?b) { ?a foaf:knows/foaf:knows ?b } order by foaf:name(?a) foaf:name(?b)
\ No newline at end of file


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