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

Chapter13.15 bug fix #794

Merged
merged 7 commits into from
Nov 26, 2024

Conversation

twoody0
Copy link
Contributor

@twoody0 twoody0 commented Nov 6, 2024

Summary

This pull request addresses an issue in Chapter13.15.ParameterlessStatementLambdas.cs where getUserInput was only taking white space as input. The method has been updated to ensure that only valid, non-whitespace strings are accepted.

Changes Made

  • Removed the Not (!) on the while loop condition in getUserInput to properly handle whitespace inputs.
  • Updated 'Main' to call Console.WriteLine(input); for testing.
  • Added unit test to verify correct behavior for valid inputs.

@BenjaminMichaelis BenjaminMichaelis merged commit 99d6952 into IntelliTect:v12.0 Nov 26, 2024
6 checks passed
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