Conversation
|
GNU sed testsuite comparison: |
|
Please fix the failing tests, ensuring the output is compatible with existing sed output. Also ensure and test that the behavior is correct under Probably best to wait for the integration of this PR and then add the code in the following block. if index == 0 || context.separate {
context.line_number = 0;
reset_latched_address_ranges(&mut context.range_commands);
} |
|
Yes, I'll get back on this when the PR is accepted. |
|
@LoukasPap merged! |
|
@sylvestre Thanks for the update! I'll look at it. |
|
Hello and sorry for the inactivity these days. I am trying to install act so as to run CI checks locally, but I am facing issues with the installation. The problem is in my OS (Windows) where something is not working correctly. I am trying to find a solution to that. I will update you as soon as I start working on the issue again. Thank you for your patience! |
|
@LoukasPap Consider focusing on the test failures, not to replicate the entire CI. |
|
@dspinellis I had tried running some tests alone but I was getting different error messages from the ones in the CI console. For example |
|
Ensure your files don't contain carriage returns (\r). Consider installing WSL and trying the tests there. |
|
I have WSL. I'll try there. |
|
could you please add a test to cover this? thanks |
|
Yes, I'll add today. |
|
Moved to WSL and the tests are showing the correct error messages! I've added a test case and now I will try to fix the failing tests before pushing. |
|
Finally corrected the problem with the newline. I also fixed a same-case problem with |
|
@LoukasPap Please squash related commits together. So each commit should address one case. |
09805a5 to
15e16b8
Compare
|
Just checked with |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #263 +/- ##
==========================================
- Coverage 82.03% 81.94% -0.10%
==========================================
Files 13 13
Lines 5423 5429 +6
Branches 291 295 +4
==========================================
Hits 4449 4449
- Misses 972 978 +6
Partials 2 2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- If hold space is empty, `x` and `g` replace the pattern with a newline and `G` first appends and then replaces with a newline.
|
Fixed |
Fix issue 253
--separateThe solution fixes the problem for the swap
xcommand but also for replacegand append-replaceGcommands.