Created
September 29, 2019 14:33
-
-
Save krsmanian1972/64699016325e6e6cd64e3e3f32cebf4b to your computer and use it in GitHub Desktop.
CoinTenderShould
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
package com.krscode; | |
import static org.junit.Assert.assertEquals; | |
import org.junit.Test; | |
public class CoinTenderShould { | |
@Test | |
public void dispenseCoins() { | |
assertEquals("P", CoinTender.dispense(1)); | |
assertEquals("PPPP", CoinTender.dispense(4)); | |
assertEquals("NPP", CoinTender.dispense(7)); | |
assertEquals("DNPP", CoinTender.dispense(17)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment