diff tests/test-topic.t @ 4381:5f1d0cff514d

topic: make ranges work in revset relations like 'foo#stack[1:2]'
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 29 Jan 2019 20:45:14 +0800
parents 2893b127923b
children a51b6684ad8f 228caeb8b7af
line wrap: on
line diff
--- a/tests/test-topic.t	Mon Jan 28 22:31:31 2019 +0800
+++ b/tests/test-topic.t	Tue Jan 29 20:45:14 2019 +0800
@@ -906,6 +906,28 @@
 
   $ tlog 'featureA#s[0]'
   0: 
+  $ tlog 'featureA#s[0:0]'
+  0: 
+  $ tlog 'featureA#s[:]'
+  1: featureA
+  2: featureA
+  3: featureA
+  $ tlog 'featureA#s[2:]'
+  2: featureA
+  3: featureA
+  $ tlog 'featureA#s[:2]'
+  1: featureA
+  2: featureA
+  $ tlog 'featureA#s[0:1]'
+  0: 
+  1: featureA
+  $ tlog 'featureA#s[-1:0]'
+  0: 
+  3: featureA
+  $ tlog 'featureA#s[-3:3]'
+  1: featureA
+  2: featureA
+  3: featureA
   $ tlog 'featureA#s[1] and featureA#s[-3]'
   1: featureA
   $ tlog 'featureA#s[2] and featureA#s[-2]'