Skip to content

io.string_reader: fix read_line(), add tests#25704

Merged
spytheman merged 1 commit into
vlang:masterfrom
tankf33der:read_line
Nov 9, 2025
Merged

io.string_reader: fix read_line(), add tests#25704
spytheman merged 1 commit into
vlang:masterfrom
tankf33der:read_line

Conversation

@tankf33der

Copy link
Copy Markdown
Contributor

The read_line() function works quite well, but managed to break the newline handler and create a working test on how to reproduce this.
Only the test_read_line_8() fails on the master branch.

@spytheman spytheman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work.
Thank you 🙇🏻 .

@spytheman

Copy link
Copy Markdown
Contributor

@tankf33der what do you think of making get_string_part return Eof for negative n ?

@spytheman spytheman merged commit f24d492 into vlang:master Nov 9, 2025
73 of 74 checks passed
@tankf33der

Copy link
Copy Markdown
Contributor Author

@tankf33der what do you think of making get_string_part return Eof for negative n ?

I will very soon get to these functions and consider this idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants