aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorTeddy Wing2021-08-19 20:39:39 +0200
committerTeddy Wing2021-08-19 20:41:22 +0200
commit79513cbf26a436a5a62fe6f88cfa768001756549 (patch)
tree880788c423eedd77c469cd6b2a76a01205a4ca7b /t
parent5f9ff73aa5f0e0a271e36010364f3b5f914b47fe (diff)
downloadreadline-incdec-79513cbf26a436a5a62fe6f88cfa768001756549.tar.bz2
incdec: Get backward-search incrementing working for last number
Doesn't work for middle numbers yet.
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 ee7aee9..b234f83 100644
--- a/t/100-increment-decrement.t
+++ b/t/100-increment-decrement.t
@@ -55,4 +55,10 @@ is(
'increments the fourth double-digit integer with point at position 16'
);
+is(
+ incdec::incdec('test 12 19 555 64', 17, 1),
+ 'test 12 19 555 65',
+ 'increments the fourth double-digit integer with point at position 16 backward'
+);
+
done_testing;