mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 22:15:24 +02:00
Add test to approximately format
This commit is contained in:
parent
f5e2214b30
commit
780b7b806e
@ -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'}
|
||||
]);
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user