Skip to content

Chapter13.15 bug fix#794

Merged
BenjaminMichaelis merged 7 commits intoIntelliTect:v12.0from
twoody0:Chapter13.15-Bug-Fix
Nov 26, 2024
Merged

Chapter13.15 bug fix#794
BenjaminMichaelis merged 7 commits intoIntelliTect:v12.0from
twoody0:Chapter13.15-Bug-Fix

Conversation

@twoody0
Copy link
Copy Markdown
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.

Comment thread src/Chapter13.Tests/Listing13.15.Tests.cs
Comment thread src/Chapter13.Tests/Listing13.15.Tests.cs Outdated
Comment thread src/Chapter13.Tests/Listing13.15.Tests.cs Outdated
@BenjaminMichaelis BenjaminMichaelis merged commit 99d6952 into IntelliTect:v12.0 Nov 26, 2024
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