mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SR-7293] Refactoring action to add Equatable Conformance
This commit is contained in:
19
test/refactoring/AddEquatableConformance/basic.swift
Normal file
19
test/refactoring/AddEquatableConformance/basic.swift
Normal file
@@ -0,0 +1,19 @@
|
||||
class TestAddEquatable {
|
||||
var property = "test"
|
||||
private var prop = "test2"
|
||||
let pr = "test3"
|
||||
}
|
||||
|
||||
extension TestAddEquatable {
|
||||
func test() -> Bool {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
// 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
|
||||
Reference in New Issue
Block a user