diff options
| author | Teddy Wing | 2021-08-21 21:19:48 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2021-08-21 21:19:48 +0200 | 
| commit | b658b4b89b23ec4966642ad544dff43eca14045b (patch) | |
| tree | c499879001ecd026ebca1b1f559499c40fd2f69b | |
| parent | b41244479515310e1f14c344161607e1c7fea360 (diff) | |
| download | readline-incdec-b658b4b89b23ec4966642ad544dff43eca14045b.tar.bz2 | |
100-increment-decrement: Add test to decrement a negative integer
| -rw-r--r-- | t/100-increment-decrement.t | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/t/100-increment-decrement.t b/t/100-increment-decrement.t index ea27a64..b5b852f 100644 --- a/t/100-increment-decrement.t +++ b/t/100-increment-decrement.t @@ -92,6 +92,12 @@ is(  );  is( +	incdec::incdec('test -1 ', -1, 7, 1), +	'test -2 ', +	'decrements the negative integer with point at position 7 backward' +); + +is(  	incdec::incdec('test 12', -1),  	'test 11',  	'decrements the first integer' | 
