X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/3ad2bb35a5e16e2c4937ef03c0bd303924f3c485..0cd51f70d2676569387f5f6a9047eb9553fea708:/js/t/kivi/parse_amount.js diff --git a/js/t/kivi/parse_amount.js b/js/t/kivi/parse_amount.js index 9b7d2aa07..1ef2b1193 100644 --- a/js/t/kivi/parse_amount.js +++ b/js/t/kivi/parse_amount.js @@ -109,3 +109,9 @@ QUnit.test("kivi.parse_amount function numbers with leading 0 should still be pa assert.equal(kivi.parse_amount('0123456789'), 123456789, '0123456789'); assert.equal(kivi.parse_amount('000123456789'), 123456789, '000123456789'); }); + +QUnit.test("kivi.parse_amount function German number style with thousand separator & contains invalid characters", function( assert ) { + kivi.setup_formats({ numbers: '1.000,00' }); + + assert.equal(kivi.parse_amount('iuh !@#$% 10,00'), 0, 'iuh !@#$% 10,00'); +});