@@ -30,7 +30,6 @@ class TestNumberFormatter: XCTestCase {
30
30
( " test_scientificMinimumIntegerDigits " , test_scientificMinimumIntegerDigits) ,
31
31
( " test_spellOutMinimumIntegerDigits " , test_spellOutMinimumIntegerDigits) ,
32
32
( " test_ordinalMinimumIntegerDigits " , test_ordinalMinimumIntegerDigits) ,
33
- ( " test_currencyPluralMinimumIntegerDigits " , test_currencyPluralMinimumIntegerDigits) ,
34
33
( " test_currencyISOCodeMinimumIntegerDigits " , test_currencyISOCodeMinimumIntegerDigits) ,
35
34
( " test_currencyAccountingMinimumIntegerDigits " , test_currencyAccountingMinimumIntegerDigits) ,
36
35
( " test_maximumIntegerDigits " , test_maximumIntegerDigits) ,
@@ -346,29 +345,6 @@ class TestNumberFormatter: XCTestCase {
346
345
XCTAssertEqual ( formatter2. string ( from: 42 ) , " 42nd " )
347
346
}
348
347
349
- func test_currencyPluralMinimumIntegerDigits( ) {
350
- // If .minimumIntegerDigits is set to 0 before .numberStyle change, preserve the value
351
- let formatter = NumberFormatter ( )
352
- XCTAssertEqual ( formatter. minimumIntegerDigits, 0 )
353
- formatter. minimumIntegerDigits = 0
354
- formatter. numberStyle = . currencyPlural
355
- XCTAssertEqual ( formatter. minimumIntegerDigits, 0 )
356
- formatter. locale = Locale ( identifier: " en_US " )
357
- XCTAssertEqual ( formatter. string ( from: 0 ) , " 0.00 US dollars " )
358
- XCTAssertEqual ( formatter. string ( from: 1.23 ) , " 1.23 US dollars " )
359
- XCTAssertEqual ( formatter. string ( from: 123.4 ) , " 123.40 US dollars " )
360
-
361
- // If .minimumIntegerDigits is not set before .numberStyle change, update the value
362
- let formatter2 = NumberFormatter ( )
363
- XCTAssertEqual ( formatter2. minimumIntegerDigits, 0 )
364
- formatter2. numberStyle = . currencyPlural
365
- XCTAssertEqual ( formatter2. minimumIntegerDigits, 0 )
366
- formatter2. locale = Locale ( identifier: " en_US " )
367
- XCTAssertEqual ( formatter2. string ( from: 0.01 ) , " 0.01 US dollars " )
368
- XCTAssertEqual ( formatter2. string ( from: 1.234 ) , " 1.23 US dollars " )
369
- XCTAssertEqual ( formatter2. string ( from: 123456.7 ) , " 123,456.70 US dollars " )
370
- }
371
-
372
348
func test_currencyISOCodeMinimumIntegerDigits( ) {
373
349
// If .minimumIntegerDigits is set to 0 before .numberStyle change, preserve the value
374
350
let formatter = NumberFormatter ( )
0 commit comments