Repeated(repeating:length:) => repeatElement(_:count:)

This commit is contained in:
Dmitri Gribenko
2015-11-10 11:53:35 -08:00
committed by Max Moiseev
parent 33bda61fa7
commit 15a9649062
6 changed files with 29 additions and 24 deletions

View File

@@ -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)!))