88 ('speed-light-speed' , 1 , '1 světlo' ),
99 ('speed-light-speed' , 2 , '2 světla' ),
1010 ('speed-light-speed' , 5 , '5 světel' ),
11- ('concentr-portion -per-1e9' , 1 , '1 částice na miliardu' ),
12- ('concentr-portion -per-1e9' , 2 , '2 částice na miliardu' ),
13- ('concentr-portion -per-1e9' , 5 , '5 částic na miliardu' ),
11+ ('concentr-part -per-1e9' , 1 , '1 částice na miliardu' ),
12+ ('concentr-part -per-1e9' , 2 , '2 částice na miliardu' ),
13+ ('concentr-part -per-1e9' , 5 , '5 částic na miliardu' ),
1414 ('duration-night' , 1 , '1 noc' ),
1515 ('duration-night' , 2 , '2 noci' ),
1616 ('duration-night' , 5 , '5 nocí' ),
@@ -29,3 +29,9 @@ def test_new_cldr46_units(unit, count, expected):
2929])
3030def test_issue_1217 (count , unit , locale , length , expected ):
3131 assert format_unit (count , unit , length , locale = locale ) == expected
32+
33+
34+ def test_deprecated_unit_ids ():
35+ for id in ("concentr-permillion" , "concentr-portion" , "concentr-portion-per-1e9" ):
36+ with pytest .warns (DeprecationWarning , match = id ):
37+ format_unit (1 , id , locale = 'en' )
0 commit comments