Skip to content

Commit 1acc213

Browse files
committed
add test for suffix
1 parent 9ef531f commit 1acc213

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift Algorithms open source project
4+
//
5+
// Copyright (c) 2020 Apple Inc. and the Swift project authors
6+
// Licensed under Apache License v2.0 with Runtime Library Exception
7+
//
8+
// See https://swift.org/LICENSE.txt for license information
9+
//
10+
//===----------------------------------------------------------------------===//
11+
12+
import XCTest
13+
import Algorithms
14+
15+
final class SuffixTests: XCTestCase {
16+
17+
func testSuffix() {
18+
let a = 0...10
19+
XCTAssertEqualSequences(a.suffix(while: { $0 > 5 }), (6...10))
20+
}

0 commit comments

Comments
 (0)