aboutsummaryrefslogtreecommitdiffstats
path: root/t
AgeCommit message (Collapse)Author
2021-08-22100-increment-decrement: Add new second number negative integer testsTeddy Wing
The previous negative integer tests worked, but it turns out that when the negative integer isn't the first one, there's a problem.
2021-08-21100-increment-decrement: Add test to decrement a negative integerTeddy Wing
2021-08-21100-increment-decrement: Doesn't work for negative numbersTeddy Wing
Our pattern matcher doesn't increment or decrement negative numbers because it doesn't look for a "-" prefix.
2021-08-19100-increment-decrement: Add a few new test casesTeddy Wing
2021-08-19incdec: Add increment step argumentTeddy Wing
A new subrouting argument that defines by how much the number should be incremented, or decremented if a negative step value is given. Add a few new tests to verify the decrementing behaviour. The final test where point is in the middle of the number fails.
2021-08-19100-increment-decrement: Fix test nameTeddy Wing
2021-08-19incdec: Get backward incrementing working in all casesTeddy Wing
Set up the proper condition to get the start index of the number just before point.
2021-08-19incdec: Get backward incrementing working in middle of a numberTeddy Wing
2021-08-19incdec: Get backward-search incrementing working for last numberTeddy Wing
Doesn't work for middle numbers yet.
2021-08-15incdec: Correctly handle middle-of-number point for third numberTeddy Wing
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.
2021-08-15100-increment-decrement: Test middle-of-number point for third numberTeddy Wing
Test fails. Increments the second number instead of the third.
2021-08-08100-increment-decrement: Need to handle cursor within for subsequent #sTeddy Wing
Currently, the 'cursor within number' handling only works when the cursor is inside the first number. It needs to work for any number in the line.
2021-08-08incdec: Test for cursor point in between a numberTeddy Wing
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.
2021-08-08incdec.pm: Add some tests and ideas for incrementing substringsTeddy Wing
Substrings and direction.
2021-08-08Add a Perl module for performing the actionTeddy Wing
This allows us to more easily test the functionality and add new behaviours.