Repository navigation
feat: support IgnoringIndentation() in the string expectations - #1032
Merged
Merged
Conversation
Closes #1022 Use `StringEqualityOptions.CountOccurrences` in `ThatString.Contains` instead of comparing every window with `AreConsideredEqual`. The window length was derived from the length of the expected string, so every option that changes that length was applied to each window individually and made the occurrences unfindable. This affected `IgnoringIndentation` as well as the already existing `IgnoringNewlineStyle`. All other string expectations compare the complete strings and already support the new option through the result types of aweXpect.Core. Update the `aweXpect.Core` package reference to v2.34.0 and reset the build scope to `Default`, so that the aweXpect package is built, tested and published again.
vbreuss
enabled auto-merge (squash)
September 6, 2026 09:49
|
Contributor
Contributor
🚀 Benchmark ResultsDetails
|
Contributor
👽 Mutation ResultsaweXpectDetails
The final mutation score is 98.70%Coverage Thresholds: high:80 low:60 break:0aweXpect.CoreDetails
The final mutation score is NaN%Coverage Thresholds: high:80 low:60 break:0 |
github-actions Bot
added a commit
that referenced
this pull request
Sep 6, 2026
…n the string expectations (#1032) by Valentin Breuß
github-actions Bot
added a commit
that referenced
this pull request
Sep 6, 2026
…n the string expectations (#1032) by Valentin Breuß
Contributor
|
This is addressed in release v2.38.0. |
This was referenced Sep 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Use
StringEqualityOptions.CountOccurrencesinThatString.Containsinstead of comparing every window withAreConsideredEqual. The window length was derived from the length of the expected string, so every option that changes that length was applied to each window individually and made the occurrences unfindable. This affectedIgnoringIndentationas well as the already existingIgnoringNewlineStyle.All other string expectations compare the complete strings and already support the new option through the result types of aweXpect.Core.
Update the
aweXpect.Corepackage reference to v2.34.0 and reset the build scope toDefault, so that the aweXpect package is built, tested and published again.IgnoringIndentation()string equality option #1022