Skip to content

Instantly share code, notes, and snippets.

@thalescm
Last active July 14, 2017 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thalescm/d7a76a7459c6524438c2afdb0d67fd83 to your computer and use it in GitHub Desktop.
Save thalescm/d7a76a7459c6524438c2afdb0d67fd83 to your computer and use it in GitHub Desktop.
@Test
fun testGivenDateInFormatX_WhenParsed_ShouldBeInFormatY() {
val date = dateInFormatX
val parserInTest = CustomDateParser()
val expectedDate = parserInTest.parse(date)
assertThat(expectedDate).isInFormatY()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment