Created
October 24, 2017 14:09
-
-
Save fbcbl/9d4710893edf8b4fd9abea2e4dc7ea31 to your computer and use it in GitHub Desktop.
kotlin_testing_pt3_example2
This file contains hidden or 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 drink() { | |
if (canDrink) { | |
System.out.println("Drinking .. ") | |
} else { | |
throw UnderageDrinkingException() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment