--- 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]'