fabiomcosta/mootools-meio-mask — pull request #17 by nagaozen (2012-01-13 21:46:15+00:00)
Title: fix large precision masking

Current version is failing in this tests:

test('should apply a precision: 5 mask to the 0 string', function(){
equals('0'.meiomask('Reverse', 'Decimal', { precision: 5 }), '0,00000');
});

test('should apply a precision: 5 mask to the 1 string', function(){
equals('1'.meiomask('Reverse', 'Decimal', { precision: 5 }), '1,00000');
});

test('should apply a precision: 5 mask to the 1000 string', function(){
equals('1000'.meiomask('Reverse', 'Decimal', { precision: 5 }), '1.000,00000');
});

test('should apply a precision: 5 mask to the 0.001 string', function(){
equals('0.001'.meiomask('Reverse', 'Decimal', { precision: 5 }), '0,00100');
});