Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests/shared #3

Merged
merged 6 commits into from
May 27, 2024
Merged

Tests/shared #3

merged 6 commits into from
May 27, 2024

Conversation

erikyo
Copy link

@erikyo erikyo commented May 27, 2024

With this Pr we are going to fix some inconsistencies in the shared functions and adding some tests, in order to ensure proper functioning

erikyo and others added 6 commits May 13, 2024 12:10
The escape character logic was not working correctly.

The logic of how a line is folded with a final escape character was
flawed. Using a loop to consume forward slashes would not allow for an
escaped forward slash to be folded correctly, it would append an extra
character to the line.

- Use if statements to check for escape characters. Only one extra
  character should be appended to the line, and it should be considered
  escaped.
- Add new test cases to test the escape character logic.
fix: foldLine escape character logic
@erikyo erikyo requested a review from johnhooks May 27, 2024 16:03
Copy link

@johnhooks johnhooks left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

@erikyo erikyo merged commit 1921323 into development May 27, 2024
10 checks passed
@erikyo erikyo deleted the tests/shared branch May 27, 2024 16:05
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