Skip to content

Commit 7cd9f7a

Browse files
nohwndCopilot
andauthored
Prepare 6.0.0-rc4 (#2823)
* Show real sub-collection matching in Should-ContainCollection release notes Should-ContainCollection now matches an ordered sub-collection (gaps allowed) as of #2820, but the 6.0.0 release notes still only showed the single-value case. Update the example and the family table to describe the real behaviour. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Bump prerelease to rc4 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent b85be7b commit 7cd9f7a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/6.0.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The assertions are grouped by how they treat `$Actual` and `$Expected`:
6868
| --- | --- | --- |
6969
| **Value – generic** | `Should-Be`, `Should-NotBe`, `Should-BeGreaterThan`, `Should-BeSame`, `Should-BeNull`, `Should-HaveType` | A single value, compared like the PowerShell operators (`Should-Be``-eq`). |
7070
| **Value – type specific** | `Should-BeString`, `Should-MatchString`/`Should-BeLikeString`, `Should-BeTrue`/`Should-BeFalse`, `Should-BeFalsy`/`Should-BeTruthy`, `Should-BeBefore`/`Should-BeAfter`, `Should-BeFasterThan`/`Should-BeSlowerThan` | A value of a known type, with type-specific options. |
71-
| **Collection – generic** | `Should-BeCollection`, `Should-ContainCollection`, `Should-NotContainCollection` | Comparing whole collections item by item. |
71+
| **Collection – generic** | `Should-BeCollection`, `Should-ContainCollection`, `Should-NotContainCollection` | Comparing a whole collection item by item, or finding an ordered sub-collection within one. |
7272
| **Collection – combinator** | `Should-All`, `Should-Any` | Asserting a condition across every / any item. |
7373

7474
There are also dedicated assertions for exceptions (`Should-Throw`), mocks (`Should-Invoke`,
@@ -134,7 +134,7 @@ $result.Error | Should-BeNull
134134
1, 2, 3 | Should-BeCollection -Count 3
135135
1, 2, 3 | Should-All { $_ -gt 0 }
136136
1, 2, 3 | Should-Any { $_ -gt 2 }
137-
@('a', 'b', 'c') | Should-ContainCollection 'b'
137+
@('a', 'b', 'c') | Should-ContainCollection @('a', 'c') # ordered sub-collection, gaps allowed
138138
139139
# Exceptions
140140
{ throw 'kaboom' } | Should-Throw -ExceptionMessage 'kaboom'

src/Pester.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@
169169
LicenseUri = "https://www.apache.org/licenses/LICENSE-2.0.html"
170170

171171
# Release notes for this particular version of the module
172-
ReleaseNotes = 'https://github.com/pester/Pester/releases/tag/6.0.0-rc3'
172+
ReleaseNotes = 'https://github.com/pester/Pester/releases/tag/6.0.0-rc4'
173173

174174
# Prerelease string of this module
175-
Prerelease = 'rc3'
175+
Prerelease = 'rc4'
176176
}
177177

178178
# Minimum assembly version required

0 commit comments

Comments
 (0)