fix: preserve negative money signs in analytics

This commit is contained in:
2026-09-06 16:37:05 +03:00
parent df64ec6b25
commit b406c5b638
3 changed files with 9 additions and 2 deletions
+1
View File
@@ -5,6 +5,7 @@ test('analytics parses Turkish grouped and decimal money without changing scale'
assert.equal(parseTL('12.50 TL'),12.5);
assert.equal(parseTL('1.234 TL'),1234);
assert.equal(parseTL('1.234,50 TL'),1234.5);
assert.equal(parseTL('-1.234,50 TL'),-1234.5);
});
test('analytics rejects impossible Turkish calendar dates instead of rolling them over',()=>{
assert.equal(parseDateTR('31.02.2026'),null);