mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
add test
This commit is contained in:
@@ -8,6 +8,11 @@ test = 1
|
||||
|
||||
}
|
||||
|
||||
func foo(a a: [Int: Int]) {}
|
||||
foo(a: [
|
||||
3: 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
|
||||
@@ -17,6 +22,7 @@ test = 1
|
||||
// RUN: %sourcekitd-test -req=format -line=7 -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=13 -length=1 %s >>%t.response
|
||||
// RUN: FileCheck --strict-whitespace %s <%t.response
|
||||
|
||||
// CHECK: key.sourcetext: "class Foo {"
|
||||
@@ -28,3 +34,4 @@ test = 1
|
||||
// CHECK: key.sourcetext: " }"
|
||||
// CHECK: key.sourcetext: " "
|
||||
// CHECK: key.sourcetext: "}"
|
||||
// CHECK: key.sourcetext: " 3: 3"
|
||||
|
||||
Reference in New Issue
Block a user