Commit Graph

190 Commits

Author SHA1 Message Date
Tufan Kaynak
f5c07d714d updated tests 2019-12-13 17:35:32 +03:00
Tufan Kaynak
2fae9512ce updated tests 2019-12-13 17:26:26 +03:00
Tufan Kaynak
ede1db8690 updated tests 2019-12-13 16:38:39 +03:00
yliharma
ed47b30e99 Merge branch 'master' into master 2019-11-22 16:03:41 +01:00
mariaS210
dc7f7907e5 romanian-issues-259: revert a test 2019-11-07 23:29:43 +02:00
mariaS210
b362b7b347 romanian-issues-259: implement and use pluralize 2019-11-07 23:02:41 +02:00
Ben Harper
f665cb32f4 Merge branch 'master' into es_coverage 2019-10-29 21:57:27 -04:00
mariaS210
9943be7d71 Merge branch 'master' into romanian-issues-259 2019-10-28 15:49:51 +02:00
Ariel Allon
28c304c2f4 Fix Hebrew support
- Correct gender of 1 and 2 (and 11 and 12) to match remainder of numbers
- Fix spelling of 8 (and 18 and 80)
- Add cases for thousands 3-9 and support in the logic
- Fix placement of "and" conjunction to match Academy of Hebrew Language position
- Add tests
2019-10-28 09:34:14 -04:00
btharper
b82bf457d4 Fill out coverage for lang_EN.py 2019-10-26 23:39:24 -04:00
btharper
6819f5a6ed Fix py2/3 difference on division and update test case 2019-10-26 22:38:50 -04:00
btharper
d82f739bc9 Add ordinal 12,345 to ES test suite to increase coverage 2019-10-26 17:37:47 -04:00
btharper
7cd31a93f1 Add simple tests for lang_DK.py 2019-10-26 16:37:22 -04:00
William José Moreno Reyes
a1d29fc2bc Update to title test
Signed-off-by: William José Moreno Reyes <williamjmorenor@gmail.com>
2019-10-25 21:40:26 -06:00
William José Moreno Reyes
e90061af65 Add more tests to cover num2words/base.py
Fix:
 - https://github.com/savoirfairelinux/num2words/issues/125

Signed-off-by: William José Moreno Reyes <williamjmorenor@gmail.com>
2019-10-25 21:40:26 -06:00
Ernesto Rodriguez Ortiz
af199a472c Merge branch 'master' into master 2019-10-25 18:37:47 -04:00
Ernesto Rodriguez Ortiz
7e893f1ef6 Merge branch 'master' into romanian-issues-259 2019-10-25 18:36:11 -04:00
William José Moreno Reyes
3cb0b40fd5 Signed-off-by: William José Moreno Reyes <williamjmorenor@gmail.com>
Add a test to check correct error raises

This is a simple test to check that NotImplementedError raises
fine. This also should improve test code coverage.
2019-10-25 18:33:40 -04:00
William José Moreno Reyes
3202476d55 Add es_NI test
Signed-off-by: William José Moreno Reyes <williamjmorenor@gmail.com>
2019-10-25 18:33:40 -04:00
Paola Coccia
d14f3388ff Fixed misspelling of 21st (ordinal number) in IT language 2019-08-26 18:07:30 +02:00
Sarah Beranek
b89acf6709 Add Ordinal Numbers Test for Kannada. 2019-08-19 13:07:47 +02:00
VENUGOPAL ACHHE
3c51be6c1f correction for ordinal case telugu test case and lang_TE 2019-07-22 09:36:57 +02:00
VENUGOPAL ACHHE
0283012532 2nd correction for telugu test case and lang_TE 2019-07-17 11:50:25 +02:00
VENUGOPAL ACHHE
607e270cad correction for telugu test case 2019-07-17 10:59:07 +02:00
VENUGOPAL ACHHE
a2900faccf Final telugu num2words. 2019-07-04 17:43:00 +02:00
VENUGOPAL ACHHE
6b3d303332 Add Telugu Num2Words. 2019-06-13 17:26:17 +02:00
Maria S
a192afec85 romanian-issues-259: test new branch 2019-06-09 12:43:01 +03:00
Maria S
bdf651d1fa romanian-issues-259: rough implementation 2019-06-09 12:24:01 +03:00
VENUGOPAL ACHHE
e887530462 Telugu Language num2words file 2019-05-21 18:15:38 +02:00
Akhilesh
cbfc8fd5d0 add kannada language support (#243)
* add kannada support

* add Kannada Language support

* add tests for kannada

* reformatted

* change lang param

* fix tests

* add condition

* add modifier

* add few more test cases

* fix test

* fix test

* modify test

* fix flake8

* fix isort

* add more tests

* add unicode prefix

* edit tests for float numbers

* add more tests

* add unicode prefix in tests

* add Kannada language
2019-05-12 11:03:31 -04:00
Filippo Costa
f6dc5a3893 Revert some copyright changes made in commit 53b4518 (#254)
Commit 53b4518 made added explicit utf-8 encoding for all sources, among
other things. A copyright notice in `tests/test_tr.py` was removed and
two were added in `num2words/lang_it.py`. I know this was a simple
mistake, I just thought it would be best to explicitly give credit where
credit is due.
2019-05-07 11:04:19 -04:00
Sarah Beranek
a869745813 Fixing currency functions for german and french. Adding Currency_Forms for DE, FR and NL. (#247)
* Fix currency function for French. Adding Currency_Forms.

* Fix currency function for German. Adding Currency_Forms.

* Move FR_DZ to new currency functions, too.

* Fix tests

* Add more currency options for dutch.

* Add more tests for German, Dutch and French currencies.
2019-04-11 19:07:44 -04:00
Blaž Bregar
18194b52ef Multitude of corrections of Slovene language (#246)
* Multitude of corrections of Slovene language

* Indentation correction for flake8

* Added tests from https://github.com/gregopet/num2words by @gregopet and merged them with existing.

* Flake8ing tests.

* Sorted imports

* Some more sorting...

* Last time for sorting?
2019-03-29 13:47:18 -04:00
Alvaro
eef5b03593 Updates accents on céntimos in Spanish (#240)
* Updates accents on céntimos in Spanish

* Update test_es.py

* Update test_es.py

* fix tests

* fix encoding

* Update tox.ini

* Update test_cli.py

* Update test_cli.py

* Update test_cli.py

* Update lang_AR.py

flake-8 compliant

* Update test_cli.py

flake8 compliant

* Update test_cli.py

* Update test_cli.py
2019-02-12 13:59:46 -05:00
Ernesto Rodriguez Ortiz
2eee037648 Fix typo 'seperator' on source code 2019-01-19 17:00:26 -05:00
kkonieczny
e459021792 Merge branch 'master' into strings 2019-01-18 15:16:24 -05:00
Zeno Gantner
67d58e7081 German: add 3 more test cases for thousands 2019-01-13 23:57:57 +01:00
Zeno Gantner
b71facf3ea German: ordinals involving 'Million' etc. are written without space, and lower case 2019-01-13 23:55:34 +01:00
Zeno Gantner
e321caf392 Million etc. are upper case in German 2019-01-13 23:25:54 +01:00
Zeno Gantner
df65296a80 German: similar rule for million as for 100 and 1000; 2 more ordinal tests 2019-01-13 23:18:51 +01:00
Zeno Gantner
0398d16460 German: 2 more ordinal tests 2019-01-13 23:04:10 +01:00
Zeno Gantner
778786b65b fix ordinal_num for French numbers ending with 1 (#236) 2019-01-12 13:10:31 -05:00
Ernesto Rodriguez Ortiz
53b4518afb Issue 229: Add explicit encoding, license and unix line separators.
Some maintainers for different linux distribution are having some
problems with the encoding on different python versions. This change
intents to make all python files define explicitly the encoding, license
and unix line separators. Remove one example of the README.rst file
where a possible non UTF-8 character is used.
2018-12-23 12:10:24 -05:00
Marek Madejski
9bd1bebb0e Shortened one test number for PEP8 compliance - smaller number parts are already tested. 2018-12-05 10:54:02 +01:00
Marek Madejski
4a0b323fa9 early continue
skip processing given power of thousand if it is 0
2018-12-03 16:07:15 +01:00
Marek Madejski
d78add4c3a Update test_pl.py
unit test fix
2018-12-03 12:40:04 +01:00
Marek Madejski
b8cd4ba181 no word for zero value of thousand's power; PL unit test fix
Before: 1_000_000_000 = "miliard milionów tysięcy" (with words for zero millions and thousands)
After: "miliard" (no words if value for given power of 1000 is 0)
2018-12-03 12:03:16 +01:00
Marek Madejski
efde954697 Update test_pl.py
added test for a really big number in Polish
2018-12-03 11:14:55 +01:00
Hugo Lefeuvre
66a47e2423 Improve german support (#222)
* german: fix case in currency names

Also, add more tests for german language.

* german: default to amount of euros, not cents

If a non-float number is provided, interpret it as a quantity in euros,
not cents.

* german: handle "ein Euro" vs "eins Euro" exception

* german: prefer "einhundert" over "hundert"

"hundert" is usually colloquial (even if widely used).

Exception: "eintausendste" and "hundertste" are special cases, here
"hundertste" and "tausendste" are usually preferred (see Duden).
2018-11-16 16:19:36 -05:00
Sangbum Kim
4d8c93847c Add: Korean support (#219)
* Add: lang_KO support

Added Korean language support and tests

* Remove commented code
2018-11-10 18:44:02 -05:00