mirror of
https://github.com/apple/swift-collections
synced 2026-11-25 04:37:48 +00:00
Also: - Tweak RigidArray. - Define some default implementations for Container requirements. - Beef up ContiguousContainer. - Add support for testing contiguous access on minimal collections.
30 lines
887 B
Swift
30 lines
887 B
Swift
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the Swift Collections open source project
|
|
//
|
|
// Copyright (c) 2025 Apple Inc. and the Swift project authors
|
|
// Licensed under Apache License v2.0 with Runtime Library Exception
|
|
//
|
|
// See https://swift.org/LICENSE.txt for license information
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
import XCTest
|
|
import _CollectionsTestSupport
|
|
import Future
|
|
|
|
#if false
|
|
@available(SwiftStdlib 6.0, *)
|
|
class RepeatingContainerTests: CollectionTestCase {
|
|
func test_10() {
|
|
withLifetimeTracking { tracker in
|
|
let a = tracker.instance(for: 42)
|
|
|
|
let items = RepeatingContainer(repeating: a, count: 10)
|
|
let expected = [a, a, a, a, a, a, a, a, a, a]
|
|
checkContainer(items, expectedContents: expected)
|
|
}
|
|
}
|
|
}
|
|
#endif
|