You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Address range validation difference for line number command #234
I've added two tests from which only the number_range_out_of_bounds works (input is same to output). For the first one (number_range), I am sure the expected outputs are correct but the test fails without pointing out any fault.
Activity
LoukasPap commentedon Jan 10, 2026
Hello, I can work on it if it's OK!
cakebaker commentedon Jan 10, 2026
@LoukasPap sure, go ahead!
LoukasPap commentedon Jan 11, 2026
The problem is in the code block below, where the
=cmd_code supports only 1 address.sed/src/sed/compiler.rs
Lines 1211 to 1213 in db58849
Changing the supported addresses from 1 to 2 seems to fix the problem without breaking something else. I will make a MR soon.
LoukasPap commentedon Jan 11, 2026
I am searching where is the most suitable place to add a relative test case. Is under the
address_rangesgood?sed/tests/by-util/test_sed.rs
Line 208 in db58849
sylvestre commentedon Jan 11, 2026
sounds good
LoukasPap commentedon Jan 11, 2026
Eventually, I found it better to write them under here, to their corresponding cmd_code:
sed/tests/by-util/test_sed.rs
Lines 772 to 774 in 35b6e84
I've added two tests from which only the
number_range_out_of_boundsworks (input is same to output). For the first one (number_range), I am sure the expected outputs are correct but the test fails without pointing out any fault.Is this problem known? I checked the
number_continuous&number_separatecases and they were failing too.LoukasPap commentedon Jan 12, 2026
@sylvestre Should I create a different branch (named with issue ID) on my forked repository before MR, or just push to main?
sylvestre commentedon Jan 12, 2026
please create a pr