Replaced € symbol with text for charset safety
This commit is contained in:
@@ -29,7 +29,7 @@ class FormattingUtilTest {
|
||||
@Test
|
||||
void testFormatEuro_positiveAmount() {
|
||||
double amount = 1234.56;
|
||||
String expectedFormattedAmount = "1.234,56 €";
|
||||
String expectedFormattedAmount = "1.234,56 Euro";
|
||||
|
||||
String formattedAmount = FormattingUtil.formatEuro(amount);
|
||||
|
||||
@@ -39,7 +39,7 @@ class FormattingUtilTest {
|
||||
@Test
|
||||
void testFormatEuro_zeroAmount() {
|
||||
double amount = 0.0;
|
||||
String expectedFormattedAmount = "0,00 €";
|
||||
String expectedFormattedAmount = "0,00 Euro";
|
||||
|
||||
String formattedAmount = FormattingUtil.formatEuro(amount);
|
||||
|
||||
@@ -49,7 +49,7 @@ class FormattingUtilTest {
|
||||
@Test
|
||||
void testFormatEuro_negativeAmount() {
|
||||
double amount = -789.12;
|
||||
String expectedFormattedAmount = "-789,12 €";
|
||||
String expectedFormattedAmount = "-789,12 Euro";
|
||||
|
||||
String formattedAmount = FormattingUtil.formatEuro(amount);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user