aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorTeddy Wing2021-08-15 19:47:18 +0200
committerTeddy Wing2021-08-15 19:53:21 +0200
commit43eed8f077a6af734adb92f7999a6cdeff0715dd (patch)
treee51dcaa6780108d94cc8de673c1a8d5af95bf801 /t
parent24495f6638809ca7d0db9ec6984a7c413abd2a58 (diff)
downloadreadline-incdec-43eed8f077a6af734adb92f7999a6cdeff0715dd.tar.bz2
incdec: Correctly handle middle-of-number point for third number
We were previously using values specific to the first and second numbers in the line. Get middle-of-number point handling working for the third number in the line, and hopefully the rest as well.
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 e7feccb..ee7aee9 100644
--- a/t/100-increment-decrement.t
+++ b/t/100-increment-decrement.t
@@ -49,4 +49,10 @@ is(
'increments the third triple-digit integer with point at position 12'
);
+is(
+ incdec::incdec('test 12 19 555 64', 16),
+ 'test 12 19 555 65',
+ 'increments the fourth double-digit integer with point at position 16'
+);
+
done_testing;