Skip to content

Commit

Permalink
test: Adjust expected numbers to comply with CLDR 44.1
Browse files Browse the repository at this point in the history
  • Loading branch information
georgkrause committed Apr 9, 2024
1 parent 222acbd commit c8cc70e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -492,10 +492,10 @@ be limited to a particular territory with a territory code (such as a country
code).

>>> Language.get('es').speaking_population()
487664083
493528077

>>> Language.get('pt').speaking_population()
237135429
237496885

>>> Language.get('es-BR').speaking_population()
76218
Expand All @@ -516,11 +516,11 @@ Script codes will be ignored, because the script is not involved in speaking:

>>> all = Language.get('zh').writing_population()
>>> all
1240326057
1240841517

>>> traditional = Language.get('zh-Hant').writing_population()
>>> traditional
37019589
36863340

>>> simplified = Language.get('zh-Hans').writing_population()
>>> all == traditional + simplified
Expand Down
8 changes: 4 additions & 4 deletions langcodes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1214,9 +1214,9 @@ def speaking_population(self) -> int:
how many people speak in a particular writing script.
>>> Language.get('es').speaking_population()
487664083
493528077
>>> Language.get('pt').speaking_population()
237135429
237496885
>>> Language.get('es-BR').speaking_population()
76218
>>> Language.get('pt-BR').speaking_population()
Expand Down Expand Up @@ -1249,11 +1249,11 @@ def writing_population(self) -> int:
>>> all = Language.get('zh').writing_population()
>>> all
1240326057
1240841517
>>> traditional = Language.get('zh-Hant').writing_population()
>>> traditional
37019589
36863340
>>> simplified = Language.get('zh-Hans').writing_population()
>>> all == traditional + simplified
Expand Down

0 comments on commit c8cc70e

Please sign in to comment.