mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The code goes into its own sub-tree under 'tools' but tests go under 'test', so that running 'check-swift' will also run all the SourceKit tests. SourceKit is disabled on non-darwin platforms.
32 lines
860 B
Swift
32 lines
860 B
Swift
class Foo {
|
|
}
|
|
|
|
extension Foo {
|
|
|
|
}
|
|
|
|
extension Foo
|
|
{
|
|
|
|
}
|
|
|
|
|
|
// RUN: %sourcekitd-test -req=format -line=4 -length=1 %s >%t.response
|
|
// RUN: %sourcekitd-test -req=format -line=5 -length=1 %s >>%t.response
|
|
// RUN: %sourcekitd-test -req=format -line=6 -length=1 %s >>%t.response
|
|
|
|
// RUN: %sourcekitd-test -req=format -line=8 -length=1 %s >>%t.response
|
|
// RUN: %sourcekitd-test -req=format -line=9 -length=1 %s >>%t.response
|
|
// RUN: %sourcekitd-test -req=format -line=10 -length=1 %s >>%t.response
|
|
// RUN: %sourcekitd-test -req=format -line=11 -length=1 %s >>%t.response
|
|
// RUN: FileCheck --strict-whitespace %s <%t.response
|
|
|
|
// CHECK: key.sourcetext: "extension Foo {"
|
|
// CHECK: key.sourcetext: " "
|
|
// CHECK: key.sourcetext: "}"
|
|
|
|
// CHECK: key.sourcetext: "extension Foo"
|
|
// CHECK: key.sourcetext: "{"
|
|
// CHECK: key.sourcetext: " "
|
|
// CHECK: key.sourcetext: "}"
|