Skip to content

Instantly share code, notes, and snippets.

@hhariri
Created January 21, 2013 16:07
Show Gist options
  • Save hhariri/4587074 to your computer and use it in GitHub Desktop.
Save hhariri/4587074 to your computer and use it in GitHub Desktop.
public fun given(description : String, givenExpression: Given.() -> Unit) {
// code omitted
}
public class Given {
public fun on(description: String, onExpression: On.() -> Unit) {
// code omitted
}
}
public class On {
public fun it(description: String, itExpression: It.()->Unit) {
// code omitted
}
}
public class It {
fun shouldEqual<T>(expected: T, actual: T) {
assertEquals(expected, actual)
}
// rest of code omitted...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment