Skip to content

Instantly share code, notes, and snippets.

@jasongorman
Created March 27, 2019 10:41
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 jasongorman/8ee175b82a0ecd2cca9e2da26cfc8a78 to your computer and use it in GitHub Desktop.
Save jasongorman/8ee175b82a0ecd2cca9e2da26cfc8a78 to your computer and use it in GitHub Desktop.
@Test
fun quoteForRectangularRoomWithNoRounding(){
assertEquals(62.5, quote(room(2.5, 2.5), carpet(10.0, false)));
}
@Test
fun quoteForRectangularRoomWithRounding(){
assertEquals(70.0, quote(room(2.5, 2.5), carpet(10.0, true)));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment