Created
October 14, 2019 09:55
-
-
Save ininmm/86e186fb0854d0574b10ffddcb535e66 to your computer and use it in GitHub Desktop.
Refactoring test
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 selectMaxValue(first: Int, second: Int, third: Int): Int { | |
...... | |
return 正確的最大數 | |
} | |
...... | |
@Test | |
fun selectMaxValue_whenInputMaxValueIntoFirstParam_thenReturnMaxValue() { | |
val result = chooseTheMaxValue(6, 2, 1) | |
assertThat(result, `is`(6)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment