Files
swift-collections/Tests/FutureTests/RepeatingContainerTests.swift
Karoy Lorentey fea1d24e7b Flesh out DynamicArray
Also:
- Tweak RigidArray.
- Define some default implementations for Container requirements.
- Beef up ContiguousContainer.
- Add support for testing contiguous access on minimal collections.
2025-04-30 19:41:15 -07:00

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