test: add failing test case for js flt

This commit is contained in:
David Arnold 2023-09-17 14:44:41 +02:00
parent ea7b080e70
commit 9f0c8be183
No known key found for this signature in database
GPG key ID: 0318D822BAC965CC

View file

@ -83,6 +83,23 @@ context("Control Float", () => {
},
],
},
{
// '.' is the parseFloat's decimal separator
number_format: "#.###,##",
values: [
{
input: "12.345",
blur_expected: "12.345",
focus_expected: "12345",
},
{
// parseFloat would reduce 12,340 to 12,34 if this string was ever to be parsed
input: "12.340",
blur_expected: "12.340",
focus_expected: "12340",
},
],
},
];
}
});