mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
stdlib: Audit API for Swift 3 preposition, first-arg label rules
This commit is the result of auditing the following files: * StringBuffer.swift * StringCharacterView.swift * StringCore.swift * StringInterpolation.swift.gyb * StringLegacy.swift
This commit is contained in:
@@ -235,7 +235,7 @@ StringTests.test("ForeignIndexes/removeSubrange/OutOfBoundsTrap/2") {
|
||||
}
|
||||
|
||||
StringTests.test("_splitFirst") {
|
||||
var (before, after, found) = "foo.bar"._splitFirst(".")
|
||||
var (before, after, found) = "foo.bar"._splitFirst(separator: ".")
|
||||
expectTrue(found)
|
||||
expectEqual("foo", before)
|
||||
expectEqual("bar", after)
|
||||
|
||||
Reference in New Issue
Block a user