mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Repeated(repeating:length:) => repeatElement(_:count:)
This commit is contained in:
committed by
Max Moiseev
parent
33bda61fa7
commit
15a9649062
@@ -144,7 +144,7 @@ tests.test("${Self}/Basics") {
|
||||
// Check that we can round-trip the string representation of 2^100,
|
||||
// which requires an exponent to express...
|
||||
let large =
|
||||
Repeated(repeating: 1024 as ${Self}, length: 10).reduce(1, combine: *)
|
||||
repeatElement(1024 as ${Self}, count: 10).reduce(1, combine: *)
|
||||
let largeText = String(large)
|
||||
expectEqual(largeText, String(${Self}(largeText)!))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user