mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
15 lines
459 B
Swift
15 lines
459 B
Swift
let a = 1
|
|
let b = 2 // End line with CR
|
|
let c = 3
|
|
|
|
|
|
|
|
// RUN: %sourcekitd-test -req=format -line=1 -length=1 %s >%t.response
|
|
// RUN: %sourcekitd-test -req=format -line=2 -length=1 %s >>%t.response
|
|
// RUN: %sourcekitd-test -req=format -line=3 -length=1 %s >>%t.response
|
|
// RUN: %FileCheck --strict-whitespace %s <%t.response
|
|
|
|
// CHECK: key.sourcetext: "let a = 1"
|
|
// CHECK: key.sourcetext: "let b = 2 // End line with CR"
|
|
// CHECK: key.sourcetext: "let c = 3"
|
|
|