python-babel / babel

The official repository for Babel, the Python Internationalization Library
http://babel.pocoo.org/
BSD 3-Clause "New" or "Revised" License
1.29k stars 433 forks source link

Incorrect expected value in exponent grouping test #1026

Open kygoh opened 10 months ago

kygoh commented 10 months ago

Overview Description

According to specifications for scientific notation in UNICODE LOCALE DATA MARKUP LANGUAGE (LDML) - PART 3: NUMBERS:

The maximum number of integer digits, if present, specifies the exponent grouping. The most common use of this is to generate engineering notation, in which the exponent is a multiple of three, for example, "##0.###E0". The number 12345 is formatted using "##0.####E0" as "12.345E3".

https://github.com/python-babel/babel/blob/9ef53c6a6ab5fc604b58ccb19dc63ebcf8edd28b/tests/test_numbers.py#L93-L94