X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/0cd51f70d2676569387f5f6a9047eb9553fea708..dc78c22510c618deef355808393ecc7bcde319a3:/js/t/kivi/parse_amount.js?ds=sidebyside diff --git a/js/t/kivi/parse_amount.js b/js/t/kivi/parse_amount.js index 1ef2b1193..8df776736 100644 --- a/js/t/kivi/parse_amount.js +++ b/js/t/kivi/parse_amount.js @@ -113,5 +113,11 @@ QUnit.test("kivi.parse_amount function numbers with leading 0 should still be pa 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'); + assert.equal(kivi.parse_amount('iuh !@#$% 10,00'), undefined, 'iuh !@#$% 10,00'); +}); + +QUnit.test("kivi.parse_amount function German number style with thousand separator & invalid math expression", function( assert ) { + kivi.setup_formats({ numbers: '1.000,00' }); + + assert.equal(kivi.parse_amount('54--42'), undefined, '54--42'); });