Fix for failing toCurrency tests on CIs.

This commit is contained in:
Erik C. Thauvin 2021-05-26 04:34:25 -07:00
parent f252c1602b
commit 3f9ac5f342

View file

@ -98,8 +98,8 @@ class CryptoPriceTest {
val aud = CryptoPrice("BTC", "AUD", d) val aud = CryptoPrice("BTC", "AUD", d)
assertEquals("A$12,345.67", aud.toCurrency(), "AUD format") assertEquals("A$12,345.67", aud.toCurrency(), "AUD format")
val fr = CryptoPrice("BTC", "EUR", d) val dk = CryptoPrice("BTC", "DKK", d)
assertEquals("12345,67 ", fr.toCurrency(Locale.FRANCE), "EUR-FR format") assertEquals("12.345,67 kr.", dk.toCurrency(Locale("da", "DK")), "EUR-DKK format")
val jp = CryptoPrice("BTC", "JPY", d) val jp = CryptoPrice("BTC", "JPY", d)
assertEquals("¥12,345.67", jp.toCurrency(Locale.JAPAN), "EUR-JPY format") assertEquals("¥12,345.67", jp.toCurrency(Locale.JAPAN), "EUR-JPY format")