mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Collection.count => .length
And other API changes that naturally fall out from this, like Array(repeating:count:) => Array(repeating:length:).
This commit is contained in:
committed by
Max Moiseev
parent
824088a07d
commit
73ce9ae7e9
@@ -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 =
|
||||
Repeat(repeating: 1024 as ${Self}, count: 10).reduce(1, combine: *)
|
||||
Repeat(repeating: 1024 as ${Self}, length: 10).reduce(1, combine: *)
|
||||
let largeText = String(large)
|
||||
expectEqual(largeText, String(${Self}(largeText)!))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user