diff options
| author | Teddy Wing | 2021-08-08 19:21:18 +0200 |
|---|---|---|
| committer | Teddy Wing | 2021-08-08 19:22:42 +0200 |
| commit | 3a813c6204e4f6879540fb2f44abb71f0406296f (patch) | |
| tree | c28e8d23cba2384788fe64d31d57d2cf5280e1c2 | |
| parent | 8c5f0c4a32321df2789b2f2b1992c5d190cd4b45 (diff) | |
| download | readline-incdec-3a813c6204e4f6879540fb2f44abb71f0406296f.tar.bz2 | |
incdec: Test for cursor point in between a number
Add a failing test for incrementing a number when the cursor is at:
test 19 0
^
This currently results in:
test 110 0
which is incorrect.
| -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 9420f3a..5d7287a 100644 --- a/t/100-increment-decrement.t +++ b/t/100-increment-decrement.t @@ -26,6 +26,12 @@ is( ); is( + incdec::incdec('test 19 0', 6), + 'test 20 0', + 'increments the first integer with point at position 6' +); + +is( incdec::incdec('test 12 0', 7), 'test 12 1', 'increments the second integer with point at position 7' |
