Commit Graph

379 Commits

Author SHA1 Message Date
Ernesto Rodriguez Ortiz
432b763e1d Merge pull request #287 from btharper/es_coverage
Add ordinal 12,345 to ES test suite to increase coverage
2019-12-31 09:32:23 -05:00
Ernesto Rodriguez Ortiz
cb9fff1189 Merge branch 'master' into es_coverage 2019-12-30 17:15:38 -05:00
Ernesto Rodriguez Ortiz
b594ac0513 Merge pull request #298 from toofun666/master
Update test_tr.py to increase coverage
2019-12-27 16:11:50 -05:00
Tufan Kaynak
234e02dd54 updated tests 2019-12-13 20:18:59 +03:00
Tufan Kaynak
0236257876 updated tests 2019-12-13 19:49:39 +03:00
Tufan Kaynak
39ef298626 updated tests 2019-12-13 19:13:41 +03:00
Tufan Kaynak
3da9fd8705 updated tests 2019-12-13 19:08:49 +03:00
Tufan Kaynak
fe0bc1adbd updated tests 2019-12-13 19:06:36 +03:00
Tufan Kaynak
6a4e955049 updated tests 2019-12-13 19:02:02 +03:00
Tufan Kaynak
739f02d830 updated tests 2019-12-13 18:55:38 +03:00
Tufan Kaynak
a7971f1156 updated tests 2019-12-13 18:46:34 +03:00
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
2c629f8349 updated tests 2019-12-13 17:16:02 +03:00
Tufan Kaynak
7c6a716165 updated tests 2019-12-13 17:12:13 +03:00
Tufan Kaynak
0b22ac1950 updated tests 2019-12-13 17:11:07 +03:00
Tufan Kaynak
1514514ed9 updated tests 2019-12-13 17:06:07 +03:00
Tufan Kaynak
8e19dd584b updated tests 2019-12-13 16:59:02 +03:00
Tufan Kaynak
12ef620b29 updated tests 2019-12-13 16:49:40 +03:00
Tufan Kaynak
9b8a541224 updated tests 2019-12-13 16:45:01 +03:00
Tufan Kaynak
ede1db8690 updated tests 2019-12-13 16:38:39 +03:00
Ben Harper
f665cb32f4 Merge branch 'master' into es_coverage 2019-10-29 21:57:27 -04:00
Ariel Allon
c1e3e854bb Use non-url-encoded source URL to avoid CI rejection for too-long line 2019-10-28 09:34:14 -04: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
d161b4348d Remove excess try/except KeyError block 2019-10-26 23:22:23 -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
William José Moreno Reyes
4f116228b5 Update .gitignore to add .eggs/ directory
Signed-off-by: William José Moreno Reyes <williamjmorenor@gmail.com>
2019-10-25 23:20:51 -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
William José Moreno Reyes
5e15702912 Add es_NI currency
Examples:

  python bin/num2words 1 -l es_NI --to currency
  un córdoba con cero centavos

  python bin/num2words 1.02 -l es_NI --to currency
  un córdoba con dos centavos

  python bin/num2words 2.02 -l es_NI --to currency
  dos córdobas con dos centavos

  python bin/num2words 1.01 -l es_NI --to currency
  un córdoba con un centavo

Signed-off-by: William José Moreno Reyes <williamjmorenor@gmail.com>
2019-10-25 18:33:40 -04:00
Ivan Petukhov
ca5989a3ec Add KZT and UAH currencies to lang RU 2019-09-10 16:46:05 -04:00
Ernesto Rodriguez Ortiz
2d1a318359 Release v0.5.10 2019-05-12 11:48:38 -04: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
Chintalagiri Shashank
f4b2bac098 Add support for the Indian rupee. (#248) 2019-04-11 20:14:59 -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
Pierre Duchemin
aa9b882fe6 Merge pull request #238 from savoirfairelinux/fix_typo_seperator
Fix typo 'seperator' on source code
2019-01-23 14:23:07 -05:00
Ernesto Rodriguez Ortiz
2eee037648 Fix typo 'seperator' on source code 2019-01-19 17:00:26 -05:00
kkonieczny
c1292c1499 Merge pull request #223 from btharper/strings
Convert strings to Decimal values
2019-01-18 16:01:39 -05:00
kkonieczny
e459021792 Merge branch 'master' into strings 2019-01-18 15:16:24 -05:00
kkonieczny
83cfcdc999 Merge pull request #237 from zenogantner/master
German improvements
2019-01-18 15:05:24 -05:00
kkonieczny
a3a0961b7d Merge branch 'master' into master 2019-01-18 14:55:41 -05:00
kkonieczny
cebcaa6e64 Merge pull request #233 from TrangOul/master
PL: regular names for powers of thousand
2019-01-18 14:38:04 -05:00
Marek Madejski
38d2752728 Merge branch 'master' into master 2019-01-14 15:19:17 +01: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