diff options
author | Philip Van Hoof <philip@codeminded.be> | 2010-07-30 14:40:35 +0200 |
---|---|---|
committer | Philip Van Hoof <philip@codeminded.be> | 2010-07-30 14:41:18 +0200 |
commit | fc14db0919526c4ddca3fdb05cef9a4da8e3b738 (patch) | |
tree | b84e7411c5d917d14565964f9bedd3ec2fd7db2c /tests/libtracker-data/algebra | |
parent | 1801c334db20f31ee7f0ce583a0c9580d05f9a0a (diff) | |
download | tracker-fc14db0919526c4ddca3fdb05cef9a4da8e3b738.tar.gz |
tests/libtracker-data: Added IN and NOT IN unit tests
Diffstat (limited to 'tests/libtracker-data/algebra')
-rw-r--r-- | tests/libtracker-data/algebra/Makefile.am | 4 | ||||
-rw-r--r-- | tests/libtracker-data/algebra/filter-in-1.out | 1 | ||||
-rw-r--r-- | tests/libtracker-data/algebra/filter-in-1.rq | 4 | ||||
-rw-r--r-- | tests/libtracker-data/algebra/filter-in-2.out | 3 | ||||
-rw-r--r-- | tests/libtracker-data/algebra/filter-in-2.rq | 4 |
5 files changed, 16 insertions, 0 deletions
diff --git a/tests/libtracker-data/algebra/Makefile.am b/tests/libtracker-data/algebra/Makefile.am index c75b7bd6b..19ebed508 100644 --- a/tests/libtracker-data/algebra/Makefile.am +++ b/tests/libtracker-data/algebra/Makefile.am @@ -9,6 +9,10 @@ EXTRA_DIST = \ filter-nested-1.rq \ filter-nested-2.out \ filter-nested-2.rq \ + filter-in-1.out \ + filter-in-1.rq \ + filter-in-2.out \ + filter-in-2.rq \ filter-placement-1.out \ filter-placement-1.rq \ filter-placement-2.out \ diff --git a/tests/libtracker-data/algebra/filter-in-1.out b/tests/libtracker-data/algebra/filter-in-1.out new file mode 100644 index 000000000..f27b76c59 --- /dev/null +++ b/tests/libtracker-data/algebra/filter-in-1.out @@ -0,0 +1 @@ +"1" diff --git a/tests/libtracker-data/algebra/filter-in-1.rq b/tests/libtracker-data/algebra/filter-in-1.rq new file mode 100644 index 000000000..59e7b1e2f --- /dev/null +++ b/tests/libtracker-data/algebra/filter-in-1.rq @@ -0,0 +1,4 @@ +PREFIX : <http://example/> + +SELECT ?v +{ :x :p ?v . FILTER(?v IN ("1")) } diff --git a/tests/libtracker-data/algebra/filter-in-2.out b/tests/libtracker-data/algebra/filter-in-2.out new file mode 100644 index 000000000..55702eba1 --- /dev/null +++ b/tests/libtracker-data/algebra/filter-in-2.out @@ -0,0 +1,3 @@ +"2" +"3" +"4" diff --git a/tests/libtracker-data/algebra/filter-in-2.rq b/tests/libtracker-data/algebra/filter-in-2.rq new file mode 100644 index 000000000..26669a76c --- /dev/null +++ b/tests/libtracker-data/algebra/filter-in-2.rq @@ -0,0 +1,4 @@ +PREFIX : <http://example/> + +SELECT ?v +{ :x :p ?v . FILTER(?v NOT IN ("1")) } |