railsware / Sleipnir

BDD-style framework for Swift
http://railsware.com/blog/2014/07/04/bdd-style-testing-in-swift-with-sleipnir
MIT License
844 stars 48 forks source link

Support closures in 'expect' #3

Closed atermenji closed 10 years ago

atermenji commented 10 years ago
expect{ 1 + 2 }.to(equal(3))
AlexDenisov commented 10 years ago

auto_closure?

atermenji commented 10 years ago

@auto_closure is needed when a function receives the closure to omit the braces. When a function receives a generic @auto_closure is not needed. Read the first answer