Created
September 23, 2016 09:21
-
-
Save sys1yagi/b1191ec45dbf7950be7fff5b38061b1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun given(description: String, given: Given.() -> Unit) { | |
given.invoke(Given()) | |
} | |
class Given { | |
fun on(description: String, on: On.() -> Unit) { | |
on.invoke(On()) | |
} | |
} | |
class On { | |
fun it(description: String, it: It.() -> Unit) { | |
it.invoke(It()) | |
} | |
} | |
class It { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment