changeset 20736:b0203624ab20

revset: extend sorting tests
author Lucas Moscovicz <lmoscovicz@fb.com>
date Tue, 11 Mar 2014 17:25:53 -0700
parents 2115e035da11
children b141080e70c5
files tests/test-revset.t
diffstat 1 files changed, 14 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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