Skip to content

Commit

Permalink
Move test to a more sensible location
Browse files Browse the repository at this point in the history
Also, use a more sensible ID as well. Add another test (for
Date values).
  • Loading branch information
jessealama authored and rwaldron committed Feb 28, 2022
1 parent ecd24fa commit 10f9a69
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-temporal.instant
description: formatRange fails if given arguments of different types
esid: sec-intl.datetimeformat.prototype.formatRange
description: formatRange fails if given arguments of different Temporal types
features: [Temporal]
---*/

const us = new Intl.DateTimeFormat('en-US');

const instances = {
instant: new Temporal.Instant(0n),
number: new Date.UTC(2000, 5, 2),
plaindate: new Temporal.PlainDate(2000, 5, 2),
plaindatetime: new Temporal.PlainDateTime(2000, 5, 2, 12, 34, 56, 987, 654, 321),
plainmonthday: new Temporal.PlainMonthDay(5, 2),
Expand Down

0 comments on commit 10f9a69

Please sign in to comment.