Add tests for TemporalInstantString with bracketed time zone annotation

This commit is contained in:
André Bargull 2022-06-14 10:19:19 +02:00 committed by Ms2ger
parent b1f49b5c46
commit f169ba6ec7
1 changed files with 8 additions and 0 deletions

View File

@ -37,6 +37,14 @@ const tests = [
['1976-11-18T15:23:30+00', 217178610000000000n],
['1976-11-18T15Z', 217177200000000000n],
['1976-11-18T15:23:30.123456789Z[u-ca=discord]', 217178610123456789n],
['1976-11-18T15:23:30.123456789Z[+00]', 217178610123456789n],
['1976-11-18T15:23:30.123456789Z[+00:00]', 217178610123456789n],
['1976-11-18T15:23:30.123456789Z[-00]', 217178610123456789n],
['1976-11-18T15:23:30.123456789Z[-00:00]', 217178610123456789n],
['1976-11-18T15:23:30.123456789Z[+12]', 217178610123456789n],
['1976-11-18T15:23:30.123456789Z[UTC]', 217178610123456789n],
['1976-11-18T15:23:30.123456789Z[Europe/Paris]', 217178610123456789n],
['1976-11-18T15:23:30.123456789Z[NotATimeZone]', 217178610123456789n],
];
for (const [arg, expected] of tests) {