Files
swift-mirror/test/SourceKit/Refactoring/semantic-refactoring/extract-func.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

13 lines
416 B
Swift

func foo() -> Int {
var a = 3
a = a + 1
return 1
}
// RUN: %empty-directory(%t.result)
// RUN: %sourcekitd-test -req=extract-func -pos=2:1 -end-pos 4:11 -name new_name %s -- %s > %t.result/extract-func.swift.expected
// RUN: diff -u %S/extract-func.swift.expected %t.result/extract-func.swift.expected
// FIXME: Fails on linux with assertion: "!GlibcModuleMapPath.empty()"" failed
// REQUIRES-ANY: OS=macosx