diff options
| author | Teddy Wing | 2022-05-25 01:48:50 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2022-05-25 01:48:50 +0200 | 
| commit | 3831218d3271133e176b07e0f19e0b16dd907491 (patch) | |
| tree | 6b8706a06738e881f1ea4ad1f12d7edee65f88b9 /t/100-increment-decrement.t | |
| parent | ac4b0dc07c3b2ac710f51fa804068ee7a76f916f (diff) | |
| download | readline-incdec-3831218d3271133e176b07e0f19e0b16dd907491.tar.bz2 | |
incdec.pm: Idea for correctly excluding leading zero
This passes the two leading zero tests, but fails the test that tries to
increment a single-digit "0" at the last position in the string.
Also fix the test's expected start position.
Diffstat (limited to 't/100-increment-decrement.t')
| -rw-r--r-- | t/100-increment-decrement.t | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/t/100-increment-decrement.t b/t/100-increment-decrement.t index 50d76c5..d83a35a 100644 --- a/t/100-increment-decrement.t +++ b/t/100-increment-decrement.t @@ -53,7 +53,7 @@ is_deeply(  );  @got = incdec::incdec('test A-02 0', -1); -@want = ('test A-03 0', 7); +@want = ('test A-01 0', 8);  is_deeply(  	\@got,  	\@want, | 
