init(count: Int, repeatedValue: Element) => init(repeating:count:)

Affected types: _ArrayType, Array, ArraySlice, ContiguousArray, Repeat,
String (initializers from Character and UnicodeScalar)
This commit is contained in:
Dmitri Gribenko
2015-11-04 11:26:37 -08:00
committed by Max Moiseev
parent d72b5ab575
commit df17ddbc9b
33 changed files with 102 additions and 94 deletions

View File

@@ -48,8 +48,9 @@ UnicodeTrie.test("_UnicodeGraphemeClusterBreakPropertyTrie") {
var trie = _UnicodeGraphemeClusterBreakPropertyTrie()
var expected = [_GraphemeClusterBreakPropertyValue](count: 0x110000,
repeatedValue: _GraphemeClusterBreakPropertyValue.Other)
var expected = [_GraphemeClusterBreakPropertyValue](
repeating: _GraphemeClusterBreakPropertyValue.Other,
count: 0x110000)
for (startCodePoint, endCodePoint, value) in graphemeBreakPropertyTable {
for cp in startCodePoint...endCodePoint {
expected[cp] = value