From 80566a814a93e4658a5699f8df9665d6774a1dbe Mon Sep 17 00:00:00 2001 From: Romulo Cintra Date: Thu, 31 Mar 2022 15:37:41 +0200 Subject: [PATCH] update roundingIncrement test --- .../NumberFormat/constructor-roundingIncrement-invalid.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/intl402/NumberFormat/constructor-roundingIncrement-invalid.js b/test/intl402/NumberFormat/constructor-roundingIncrement-invalid.js index ebc856b3b61..e92266498e4 100644 --- a/test/intl402/NumberFormat/constructor-roundingIncrement-invalid.js +++ b/test/intl402/NumberFormat/constructor-roundingIncrement-invalid.js @@ -27,8 +27,6 @@ assert.throws(RangeError, function() { new Intl.NumberFormat([], {roundingIncrement: 5001}); }, '5001'); -// InitializeNumberFormat ( numberFormat, locales, options ) (...) -// 23. If roundingIncrement is not 1 and numberFormat.[[RoundingType]] is not fractionDigits, throw a TypeError exception. assert.throws(TypeError, function() { new Intl.NumberFormat([], {roundingIncrement: 2, roundingPriority: 'morePrecision'}); }, '2, roundingType is "morePrecision"'); @@ -41,8 +39,6 @@ assert.throws(TypeError, function() { new Intl.NumberFormat([], {roundingIncrement: 2, minimumSignificantDigits: 1}); }, '2, roundingType is "significantDigits"'); -// InitializeNumberFormat ( numberFormat, locales, options ) (...) -// 24. If roundingIncrement is not 1 and numberFormat.[[MaximumFractionDigits]] is not equal to numberFormat.[[MinimumFractionDigits]], throw a RangeError exception. assert.throws(RangeError, function() { new Intl.NumberFormat([], {roundingIncrement: 2, maximumFractionDigits:3 , minimumFractionDigits:2 }); }, '"maximumFractionDigits" is not equal to "minimumFractionDigits"');