|
3 | 3 | // RUN: %empty-directory(%t) |
4 | 4 |
|
5 | 5 | // RUN: %refactor-check-compiles -add-async-alternative -dump-text -source-filename %s -pos=%(line+1):1 | %FileCheck -check-prefix=MULTIPLE-LABELED-RESULTS %s |
6 | | -func mutlipleLabeledResults(completion: @escaping (_ first: String, _ second: String) -> Void) { } |
| 6 | +func multipleLabeledResults(completion: @escaping (_ first: String, _ second: String) -> Void) { } |
7 | 7 | // MULTIPLE-LABELED-RESULTS: { |
8 | 8 | // MULTIPLE-LABELED-RESULTS-NEXT: Task { |
9 | | -// MULTIPLE-LABELED-RESULTS-NEXT: let result = await mutlipleLabeledResults() |
| 9 | +// MULTIPLE-LABELED-RESULTS-NEXT: let result = await multipleLabeledResults() |
10 | 10 | // MULTIPLE-LABELED-RESULTS-NEXT: completion(result.first, result.second) |
11 | 11 | // MULTIPLE-LABELED-RESULTS-NEXT: } |
12 | 12 | // MULTIPLE-LABELED-RESULTS-NEXT: } |
13 | | -// MULTIPLE-LABELED-RESULTS: func mutlipleLabeledResults() async -> (first: String, second: String) { } |
| 13 | +// MULTIPLE-LABELED-RESULTS: func multipleLabeledResults() async -> (first: String, second: String) { } |
14 | 14 |
|
15 | 15 | // RUN: %refactor-check-compiles -add-async-alternative -dump-text -source-filename %s -pos=%(line+1):1 | %FileCheck -check-prefix=MIXED-LABELED-RESULTS %s |
16 | 16 | func mixedLabeledResult(completion: @escaping (_ first: String, String) -> Void) { } |
@@ -62,11 +62,11 @@ func multipleLabeledResultWithError(completion: @escaping (_ first: String?, _ s |
62 | 62 |
|
63 | 63 | func testConvertCall() { |
64 | 64 | // RUN: %refactor -convert-call-to-async-alternative -dump-text -source-filename %s -pos=%(line+1):3 | %FileCheck -check-prefix=CONVERT-CALL %s |
65 | | - mutlipleLabeledResults() { (a, b) in |
| 65 | + multipleLabeledResults() { (a, b) in |
66 | 66 | print(a) |
67 | 67 | print(b) |
68 | 68 | } |
69 | | - // CONVERT-CALL: let (a, b) = await mutlipleLabeledResults() |
| 69 | + // CONVERT-CALL: let (a, b) = await multipleLabeledResults() |
70 | 70 | // CONVERT-CALL-NEXT: print(a) |
71 | 71 | // CONVERT-CALL-NEXT: print(b) |
72 | 72 | } |
0 commit comments