The test command below should yield:
but currently yields:
The problem may be specific to [string] input (a rare scenario) - not sure what the underlying pattern is.
Steps to reproduce
'one' | Select-Object Length | Out-String | Should -not -match '@'
Expected behavior
The test should pass.
Actual behavior
The test fails.
Expected regular expression '@' to not match '@{Length=3}
', but it did match.
Environment data
PowerShell Core 7.0.0-preview.4
The test command below should yield:
but currently yields:
The problem may be specific to
[string]input (a rare scenario) - not sure what the underlying pattern is.Steps to reproduce
Expected behavior
The test should pass.
Actual behavior
The test fails.
Environment data