Skip to content

Commit d61c963

Browse files
committed
add test of numSeparate for new arg
1 parent 9da2000 commit d61c963

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/jasmine/tests/lib_test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,6 +1315,10 @@ describe('Test lib.js:', function() {
13151315
expect(Lib.numSeparate(2016, '.,')).toBe('2016');
13161316
});
13171317

1318+
it('should work even for 4-digit integer if third argument is true', function() {
1319+
expect(Lib.numSeparate(3000, '.,', true)).toBe('3,000');
1320+
});
1321+
13181322
it('should work for multiple thousands', function() {
13191323
expect(Lib.numSeparate(1000000000, '.,')).toBe('1,000,000,000');
13201324
});

0 commit comments

Comments
 (0)