Skip to content

Commit ead52c9

Browse files
authored
Merge pull request #4692 from apple/prefix-while-dispatch-tests
stdlib: add dispatch tests for 'drop(while:)' and 'prefix(while:)'
2 parents 0bdc8b2 + 34a28c2 commit ead52c9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

validation-test/stdlib/ExistentialCollection.swift.gyb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,14 @@ tests.test("${TestedType}: dispatch to wrapped") {
171171
_ = s.dropLast(0)
172172
}
173173

174+
Log.dropWhile.expectIncrement(Base.self) {
175+
_ = s.drop { (_) in true }
176+
}
177+
178+
Log.prefixWhile.expectIncrement(Base.self) {
179+
_ = s.prefix { (_) in true }
180+
}
181+
174182
Log.prefixMaxLength.expectIncrement(Base.self) {
175183
_ = s.prefix(0)
176184
}

0 commit comments

Comments
 (0)