tests/test-topic.t
changeset 4323 482992803db6
parent 4322 41f38bf15b4c
child 4339 0f015fe4f71f
--- a/tests/test-topic.t	Sun Dec 16 11:22:04 2018 +0800
+++ b/tests/test-topic.t	Wed Dec 26 22:14:23 2018 +0800
@@ -865,6 +865,10 @@
   0: 
   $ tlog 'tip#stack[2]'
   4: 
+  $ tlog 'tip#stack[-1]'
+  4: 
+  $ tlog 'tip#stack[-2]'
+  0: 
 
   $ hg stack featureA
   ### topic: featureA
@@ -876,20 +880,24 @@
 
   $ tlog 'featureA#s[0]'
   0: 
-  $ tlog 'featureA#s[1]'
+  $ tlog 'featureA#s[1] and featureA#s[-3]'
   1: featureA
-  $ tlog 'featureA#s[2]'
+  $ tlog 'featureA#s[2] and featureA#s[-2]'
   2: featureA
-  $ tlog 'featureA#s[3]'
+  $ tlog 'featureA#s[3] and featureA#s[-1]'
   3: featureA
+  $ tlog 'featureA#s[-4]'
 
   $ tlog 'all()#s[-1]'
+  3: featureA
+  4: 
   $ tlog 'all()#s[0]'
   0: 
   $ tlog 'all()#s[1]'
   0: 
   1: featureA
   $ tlog 'all()#s[9999]'
+  $ tlog 'all()#s[-9999]'
 
   $ hg topic featureB
   marked working directory as topic: featureB