From 47850ed9a9029b7627a55fdd58ffe9802a5e3e8a Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Tue, 9 Apr 2024 17:41:12 +0200 Subject: [PATCH] test: Adjust expected numbers to comply with CLDR 44.1 --- README.md | 8 ++++---- langcodes/__init__.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 53df5406..2c1af732 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 diff --git a/langcodes/__init__.py b/langcodes/__init__.py index 8c3b3d84..4d874630 100644 --- a/langcodes/__init__.py +++ b/langcodes/__init__.py @@ -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() @@ -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