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

Fix isspace edge case #2489

Merged
merged 4 commits into from
Feb 12, 2024
Merged

Fix isspace edge case #2489

merged 4 commits into from
Feb 12, 2024

Conversation

advikkabra
Copy link
Collaborator

An empty string should return False when the isspace method is called.

@advikkabra
Copy link
Collaborator Author

Added the test, and also noticed a bug in the C++ implementation, so fixed the same.

@anutosh491
Copy link
Collaborator

also noticed a bug in the C++ implementation

Ohh what's this ? Have you tested it out ?
Remember to raise a separate PR for every other issue you are fixing. Helps us review and keep track of the change. Nothing wrong with atomic/small commits :)

@advikkabra
Copy link
Collaborator Author

It is the same edge case, just for constant empty strings as well. I will write a test for it as well.

Copy link
Contributor

@certik certik left a comment

Choose a reason for hiding this comment

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

I think this is fine.

@anutosh491 can you please review & merge?

Copy link
Collaborator

@anutosh491 anutosh491 left a comment

Choose a reason for hiding this comment

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

Looks good, Merging !

@anutosh491 anutosh491 merged commit 2e7f1f5 into lcompilers:main Feb 12, 2024
13 checks passed
@advikkabra advikkabra deleted the isspace-fix branch February 18, 2024 14:16
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.

3 participants