Handles both cases and the tests cover them.
Approved by g1t-reviewer
ResolvedA blank name greets nobody#11 of 2 pull requestsMerged into main by syntaqx · bd01d15
The greeting function now properly handles empty and whitespace-only names:
"") now greet "world" instead of printing Hello, !" ") are treated as no name and greet "world"" Ada " greets as "Ada")Added three tests to verify this behavior. All tests pass with cargo test.
Handles both cases and the tests cover them.
Sign in to comment.