tests/test-revset.t
changeset 29943 80c86b9bb40b
parent 29935 e34cd85dc5b1
child 29944 5f56a3b9675e
--- a/tests/test-revset.t	Wed Sep 14 11:39:47 2016 -0500
+++ b/tests/test-revset.t	Wed Jun 01 20:54:04 2016 +0900
@@ -1485,7 +1485,23 @@
       <baseset [0, 1]>>>
   2
 
- 'present()' should do nothing other than suppressing an error:
+ because 'present()' does nothing other than suppressing an error, the
+ ordering requirement should be forwarded to the nested expression
+
+  $ try -p optimized 'present(2 + 0 + 1)'
+  * optimized:
+  (func
+    ('symbol', 'present')
+    (func
+      ('symbol', '_list')
+      ('string', '2\x000\x001')
+      define)
+    define)
+  * set:
+  <baseset [2, 0, 1]>
+  2
+  0
+  1
 
   $ try --optimize '2:0 & present(0 + 1 + 2)'
   (and
@@ -1510,15 +1526,16 @@
       (func
         ('symbol', '_list')
         ('string', '0\x001\x002')
-        define)
+        follow)
       follow)
     define)
   * set:
-  <baseset [0, 1, 2]>
-  0
+  <filteredset
+    <spanset- 0:2>,
+    <baseset [0, 1, 2]>>
+  2
   1
-  2
- BROKEN: should be '2 1 0'
+  0
 
  'reverse()' should take effect only if it is the outermost expression: