Files
swift-mirror/test/refactoring/ExpandSwitchCases/partially_handled.swift
Saleem Abdulrasool b67d5f0cf7 test: convert rm -rf && mkdir -p into %empty-directory
This converts the instances of the pattern for which we have a proper
substitution in lit.  This will make it easier to replace it
appropriately with Windows equivalents.
2018-03-06 14:30:54 -08:00

16 lines
330 B
Swift

enum E {
case e1
case e2
case e3
case e4
}
func foo(e: E) -> Int {
switch e {
case .e1: return 5
}
}
// RUN: %empty-directory(%t.result)
// RUN: %refactor -expand-switch-cases -source-filename %s -pos=9:8 >> %t.result/L11.swift
// RUN: diff -u %S/Outputs/partially_handled/L11.swift.expected %t.result/L11.swift