Skip to content

Commit 34a28c2

Browse files
committedSep 9, 2016
stdlib: add dispatch tests for 'drop(while:)' and 'prefix(while:)'
1 parent 4ab09b4 commit 34a28c2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎validation-test/stdlib/ExistentialCollection.swift.gyb

+8
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)
Please sign in to comment.