Skip to content

Commit f7449c2

Browse files
committed
Add tests
1 parent 9ac5355 commit f7449c2

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import Foundation
2+
3+
class MyClass: NSObject {
4+
@objc func simpleMethod() {
5+
print("simple")
6+
}
7+
8+
@objc func methodWithParameters(param1: Int, param2: String) {
9+
print("params")
10+
}
11+
12+
@objc(customSelector:with:)
13+
func methodWithCustomSelector(foo: Int, bar: String) {
14+
print("custom")
15+
}
16+
}
17+
18+
// RUN: %refactor -source-filename %s -pos=4:16 | %FileCheck %s -check-prefix=CHECK-SIMPLE
19+
// RUN: %refactor -source-filename %s -pos=8:16 | %FileCheck %s -check-prefix=CHECK-PARAMS
20+
// RUN: %refactor -source-filename %s -pos=13:10 | %FileCheck %s -check-prefix=CHECK-CUSTOM
21+
22+
// CHECK-SIMPLE: Copy Objective-C Selector
23+
// CHECK-PARAMS: Copy Objective-C Selector
24+
// CHECK-CUSTOM: Copy Objective-C Selector

0 commit comments

Comments
 (0)