revset: extend sorting tests
authorLucas Moscovicz <lmoscovicz@fb.com>
Tue, 11 Mar 2014 17:25:53 -0700
changeset 20736 b0203624ab20
parent 20735 2115e035da11
child 20737 b141080e70c5
revset: extend sorting tests
tests/test-revset.t
--- a/tests/test-revset.t	Fri Mar 14 13:12:45 2014 -0500
+++ b/tests/test-revset.t	Tue Mar 11 17:25:53 2014 -0700
@@ -483,7 +483,6 @@
   1
   0
 
-
 test when sorting a reversed collection
 
   $ log 'sort(reverse(all()), rev)'
@@ -515,6 +514,20 @@
   6
   2
 
+test substracting something from an addset
+
+  $ log '(outgoing() or removes(a)) - removes(a)'
+  8
+  9
+
+test intersecting something with an addset
+
+  $ log 'parents(outgoing() or removes(a))'
+  1
+  4
+  5
+  8
+
 check that conversion to _missingancestors works
   $ try --optimize '::3 - ::1'
   (minus