aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/100-increment-decrement.t12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/100-increment-decrement.t b/t/100-increment-decrement.t
index b5b852f..a7927ea 100644
--- a/t/100-increment-decrement.t
+++ b/t/100-increment-decrement.t
@@ -98,6 +98,18 @@ is(
);
is(
+ incdec::incdec('test 1 -2', 1, 8, 1),
+ 'test 1 -1',
+ 'increments the second negative integer with point at position 8 backward'
+);
+
+is(
+ incdec::incdec('test 1 -2', -1, 8, 1),
+ 'test 1 -3',
+ 'decrements the second negative integer with point at position 8 backward'
+);
+
+is(
incdec::incdec('test 12', -1),
'test 11',
'decrements the first integer'