Skip to content

Instantly share code, notes, and snippets.

@amadeu01
Created July 11, 2018 02:30
Show Gist options
  • Save amadeu01/d2a41c12a77078670af8016217c24c96 to your computer and use it in GitHub Desktop.
Save amadeu01/d2a41c12a77078670af8016217c24c96 to your computer and use it in GitHub Desktop.
Test of `TwoTest` exercism exercise.
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