We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ef531f commit 1acc213Copy full SHA for 1acc213
Tests/SwiftAlgorithmsTests/SuffixTests.swift
@@ -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