Last active
May 10, 2019 10:29
-
-
Save alistairsykes/b4cd4b0b710afe70dd680169315b9d49 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
object Utils { | |
fun multipleBy2(x: Int) = x * 2 | |
} | |
class UtilsTest { | |
@Test | |
fun x1__multiplyBy2__2() { | |
// GIVEN | |
val x = 1 | |
// WHEN | |
val result = Utils.multipleBy2(x) | |
// THEN | |
assertEquals(2, result) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment