diff --git a/src/Legacy/Numbers/Words/Locale/Fr.php b/src/Legacy/Numbers/Words/Locale/Fr.php index eef3ca78..2cc73da7 100644 --- a/src/Legacy/Numbers/Words/Locale/Fr.php +++ b/src/Legacy/Numbers/Words/Locale/Fr.php @@ -98,7 +98,7 @@ class Fr extends Words 'DZD' => [['dinar'], ['centime']], 'EUR' => [['euro'], ['centime']], 'GBP' => [['pound', 'pounds'], ['penny', 'pence']], - 'JPY' => [['yen', ['sen']]], + 'JPY' => [['yen'], ['sen']], 'LYD' => [['dinar'], ['centime']], 'MAD' => [['dirham'], ['centime']], 'MRO' => [['ouguiya'], ['khoums']], diff --git a/tests/CurrencyTransformer/FrenchCurrencyTransformerTest.php b/tests/CurrencyTransformer/FrenchCurrencyTransformerTest.php index 615633a8..d027dd41 100644 --- a/tests/CurrencyTransformer/FrenchCurrencyTransformerTest.php +++ b/tests/CurrencyTransformer/FrenchCurrencyTransformerTest.php @@ -13,6 +13,9 @@ public function providerItConvertsMoneyAmountToWords(): array { return [ [100, 'EUR', 'un euro'], + [100, 'JPY', 'un yen'], + [101, 'JPY', 'un yen et un sen'], + [115, 'JPY', 'un yen et quinze sens'], [200, 'EUR', 'deux euros'], [235715, 'EUR', 'deux mille trois cent cinquante-sept euros et quinze centimes'], [1522501, 'EUR', 'quinze mille deux cent vingt-cinq euros et un centime'],