aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorTeddy Wing2021-08-19 21:43:12 +0200
committerTeddy Wing2021-08-19 21:43:12 +0200
commitaff27d201c023747cc2b99f853ecb82e4f5b609b (patch)
treeb03db29dc1ddf6dcb67b63e8c1a6242df3050016 /t
parent2d6c93c03ba8a2392ff09b92bfd51fb8afe7a23c (diff)
downloadreadline-incdec-aff27d201c023747cc2b99f853ecb82e4f5b609b.tar.bz2
incdec: Get backward incrementing working in all cases
Set up the proper condition to get the start index of the number just before point.
Diffstat (limited to 't')
-rw-r--r--t/100-increment-decrement.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/100-increment-decrement.t b/t/100-increment-decrement.t
index 1345dfe..dd0df5c 100644
--- a/t/100-increment-decrement.t
+++ b/t/100-increment-decrement.t
@@ -67,4 +67,10 @@ is(
'increments the third triple-digit integer with point at position 13 backward'
);
+is(
+ incdec::incdec('test 12 19 555 64', 14, 1),
+ 'test 12 19 556 64',
+ 'increments the third triple-digit integer with point at position 14 backward'
+);
+
done_testing;