From 10f9a692957319c3b0bbd5fa06b83a4a56fb1173 Mon Sep 17 00:00:00 2001 From: Jesse Alama Date: Wed, 23 Feb 2022 11:07:40 +0100 Subject: [PATCH] Move test to a more sensible location Also, use a more sensible ID as well. Add another test (for Date values). --- .../formatRange/fails-on-distinct-temporal-types.js} | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename test/intl402/{Temporal/Instant/formatrange-fails.js => DateTimeFormat/formatRange/fails-on-distinct-temporal-types.js} (86%) diff --git a/test/intl402/Temporal/Instant/formatrange-fails.js b/test/intl402/DateTimeFormat/formatRange/fails-on-distinct-temporal-types.js similarity index 86% rename from test/intl402/Temporal/Instant/formatrange-fails.js rename to test/intl402/DateTimeFormat/formatRange/fails-on-distinct-temporal-types.js index 5dc53b743b..f72216163e 100644 --- a/test/intl402/Temporal/Instant/formatrange-fails.js +++ b/test/intl402/DateTimeFormat/formatRange/fails-on-distinct-temporal-types.js @@ -2,8 +2,8 @@ // 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] ---*/ @@ -11,6 +11,7 @@ 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),