Add test to approximately format

This commit is contained in:
Romulo Cintra 2023-01-11 11:37:18 +01:00 committed by Philip Chimento
parent f5e2214b30
commit 780b7b806e

View File

@ -49,3 +49,17 @@ compare(nf.formatRangeToParts(3, 5), [
{type: "currency", value: "$", source: "endRange"},
{type: "integer", value: "5", source: "endRange"}
]);
compare(nf.formatRangeToParts(1, 1), [
{type: 'approximatelySign', value: '~', source: 'shared'},
{type: 'currency', value: '$', source: 'shared'},
{type: 'integer', value: '1', source: 'shared'}
]);
compare(nf.formatRangeToParts(2.999, 3.001), [
{type: 'approximatelySign', value: '~', source: 'shared'},
{type: 'currency', value: '$', source: 'shared'},
{type: 'integer', value: '3', source: 'shared'}
]);