Created
July 11, 2018 02:30
-
-
Save amadeu01/d2a41c12a77078670af8016217c24c96 to your computer and use it in GitHub Desktop.
Test of `TwoTest` exercism exercise.
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
import org.junit.Ignore | |
import org.junit.Test | |
import kotlin.test.assertEquals | |
class TwoferTest { | |
@Test | |
fun noNameGiven() { | |
assertEquals("One for you, one for me.", twofer()) | |
} | |
@Test | |
fun aNameGiven() { | |
assertEquals("One for Alice, one for me.", twofer("Alice")) | |
} | |
@Test | |
fun anotherNameGiven() { | |
assertEquals("One for Bob, one for me.", twofer("Bob")) | |
} | |
@Test | |
fun emptyStringGiven() { | |
assertEquals("One for , one for me.", twofer("")) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment