Commit d1f0e5a
committed
Fix round-5 review: restore Execute params, fix StarAtStart assertion, guard length-mismatch for wildcards
- ConsoleAssert.cs: Execute() was missing 'string expectedOutput' and 'Action action'
parameters (accidentally dropped during isWildcardMatching threading). Build was broken
with CS1501 + two CS0103 errors. Restored both parameters.
- ConsoleAssert.cs: Guard the length-mismatch message with !isWildcardMatching so that
pattern-vs-output length comparisons are not shown for wildcard failures (misleading:
pattern length is semantically unrelated to match success).
- WildcardMatchAnalyzerTests.cs: AnalyzeMatch_StarAtStart_MatchesLeadingText expected
'long prefix ' (trailing space) but FindNextLiteralMatch anchors on ' end' so '*'
captures 'long prefix' without the space. Corrected assertion.1 parent 77f7c29 commit d1f0e5a
2 files changed
Lines changed: 4 additions & 2 deletions
File tree
- IntelliTect.TestTools.Console.Tests
- IntelliTect.TestTools.Console
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
| 412 | + | |
| 413 | + | |
412 | 414 | | |
413 | 415 | | |
414 | 416 | | |
| |||
581 | 583 | | |
582 | 584 | | |
583 | 585 | | |
584 | | - | |
| 586 | + | |
585 | 587 | | |
586 | 588 | | |
587 | 589 | | |
| |||
0 commit comments