Files
swift-mirror/test/refactoring/ConvertStringsConcatenationToInterpolation/basic.swift
Saleem Abdulrasool b67d5f0cf7 test: convert rm -rf && mkdir -p into %empty-directory
This converts the instances of the pattern for which we have a proper
substitution in lit.  This will make it easier to replace it
appropriately with Windows equivalents.
2018-03-06 14:30:54 -08:00

9 lines
354 B
Swift

func testStringConcatenation() {
let firstName = "Jason"
let bornYear = "1888"
let _ = "Mr. " + firstName + bornYear
}
// RUN: %empty-directory(%t.result)
// RUN: %refactor -strings-concatenation-to-interpolation -source-filename %s -pos=4:11 -end-pos=4:40 > %t.result/L4.swift
// RUN: diff -u %S/Outputs/basic/L4.swift.expected %t.result/L4.swift