Last active
September 7, 2021 18:58
-
-
Save capablaza/11e00510284497cae3a655f98c49ad4a to your computer and use it in GitHub Desktop.
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
//function target | |
public conversorMoney(String from, String to, value); | |
@Test | |
public conversorMoneyTest(){ | |
String originCurrency = "USD"; | |
String destinationCurrency = "CLP"; | |
int value = 1000; | |
// 1 USD is equal to 650 clp | |
int result = conversorMoney(originCurrency, destinationCurrency, value); | |
assertEquals(result, 6500); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment