Skip to content

Commit

Permalink
Add currency name COP (#149)
Browse files Browse the repository at this point in the history
* Add currency name COP

* Alphabetical order

* Test COP

---------

Co-authored-by: Stenfrank <[email protected]>
  • Loading branch information
Stenfrank and Stenfrank authored Feb 24, 2023
1 parent a02fa20 commit 70e87bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Legacy/Numbers/Words/Locale/Es.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class Es extends Words
'BYR' => [['rublo bielorruso', 'rublos bielorrusos'], ['kopek', 'kopeks']],
'CAD' => [['dólar canadiense', 'dólares canadienses'], ['centavo']],
'CHF' => [['swiss franc'], ['rapp']],
'COP' => [['peso', 'pesos'], ['centavo', 'centavos']],
'CYP' => [['cypriot pound'], ['cent']],
'CZK' => [['czech koruna'], ['halerz']],
'CRC' => [['colón', 'colones'], ['centavo']],
Expand Down
4 changes: 4 additions & 0 deletions tests/CurrencyTransformer/SpanishCurrencyTransformerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ public function providerItConvertsMoneyAmountToWords(): array
[200, 'PLN', 'dos zlotys'],
[200, 'DOP', 'dos pesos dominicanos'],
[500, 'EUR', 'cinco euros'],
[10000, 'COP', 'cien pesos'],
[10100, 'COP', 'ciento un pesos'],
[10100, 'EUR', 'ciento un euros'],
[10100, 'DOP', 'ciento un pesos dominicanos'],
[10101, 'COP', 'ciento un pesos con un centavo'],
[10110, 'COP', 'ciento un pesos con diez centavos'],
[52481, 'CZK', 'quinientos veinticuatro czech korunas con ochenta y un halerzs'],
[52481, 'DOP', 'quinientos veinticuatro pesos dominicanos con ochenta y un centavos'],
[61500, 'NOK', 'seiscientos quince norwegian krones'],
Expand Down

0 comments on commit 70e87bd

Please sign in to comment.