Skip to content

Instantly share code, notes, and snippets.

@rachidcalazans
Last active September 2, 2017 21:33
Show Gist options
  • Save rachidcalazans/e59c5aa3122015abda7d39086d172fdd to your computer and use it in GitHub Desktop.
Save rachidcalazans/e59c5aa3122015abda7d39086d172fdd to your computer and use it in GitHub Desktop.
Helper Test file for the Post - better-setups-on-swift-tests
import Foundation
struct Action {
let block: () -> ()
func call() {
block()
}
}
func execute(action: Action, _ setup: () -> () = {} ) {
setup()
action.block()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment