Skip to content
Permalink
Browse files

Number: Added a test case for formatting zero

  • Loading branch information...
hmizutanitsi authored and rxaviers committed Apr 17, 2019
1 parent ace5135 commit b49471765326294d3e4d4781a8291f2e33411f30
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/functional/number/format-number.js
@@ -104,6 +104,11 @@ QUnit.test( "should format decimal style", function( assert ) {
}), "0.0001" );

assert.equal( Globalize.formatNumber( 99999999.99, { useGrouping: false } ), "99999999.99" );

assert.equal( Globalize.formatNumber( 0, {
minimumSignificantDigits: 1,
maximumSignificantDigits: 3
}), "0.0" );
});

QUnit.test( "should format percent style", function( assert ) {

0 comments on commit b494717

Please sign in to comment.
You can’t perform that action at this time.