stdlib: implement new print() API

rdar://20775683

Swift SVN r28309
This commit is contained in:
Dmitri Hrybenko
2015-05-08 01:37:59 +00:00
parent 6dfbd87778
commit f46f16ae82
504 changed files with 3250 additions and 3132 deletions

View File

@@ -1929,7 +1929,7 @@ UTF16Decoder.test("measure") {
UTF16Decoder.test("Decoding") {
for (name, batch) in UTF16Tests {
println("Batch: \(name)")
print("Batch: \(name)")
for test in batch {
expectTrue(checkDecodeUTF16(test.scalarsHead, test.scalarsRepairedTail,
test.encoded), stackTrace: test.loc.withCurrentLoc())
@@ -2182,7 +2182,7 @@ func checkUTF16View(expected: [UInt16], _ subject: String,
func forStringsWithUnpairedSurrogates(checkClosure: (UTF16Test, String) -> ()) {
for (name, batch) in UTF16Tests {
println("Batch: \(name)")
print("Batch: \(name)")
for test in batch {
let subject = NonContiguousNSString(test.encoded) as String
checkClosure(test, subject)
@@ -2262,7 +2262,7 @@ StringCookedViews.test("UTF8ForNonContiguousUTF16") {
}
for (name, batch) in UTF16Tests {
println("Batch: \(name)")
print("Batch: \(name)")
for test in batch {
var expected = ArraySinkOf<UInt8>()
var expectedScalars = test.scalarsHead + test.scalarsRepairedTail