forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbasic.swift
25 lines (19 loc) · 801 Bytes
/
basic.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class TestAddEquatable {
var property = "test"
private var prop = "test2"
let pr = "test3"
}
extension TestAddEquatable {
func test() -> Bool {
return true
}
}
extension TestAddEquatable {
}
// RUN: rm -rf %t.result && mkdir -p %t.result
// RUN: %refactor -add-equatable-conformance -source-filename %s -pos=1:16 > %t.result/first.swift
// RUN: diff -u %S/Outputs/basic/first.swift.expected %t.result/first.swift
// RUN: %refactor -add-equatable-conformance -source-filename %s -pos=7:13 > %t.result/second.swift
// RUN: diff -u %S/Outputs/basic/second.swift.expected %t.result/second.swift
// RUN: %refactor -add-equatable-conformance -source-filename %s -pos=13:13 > %t.result/third.swift
// RUN: diff -u %S/Outputs/basic/third.swift.expected %t.result/third.swift