mirror of
https://github.com/tc39/test262.git
synced 2025-08-16 15:38:27 +02:00
As in the previous commit, without custom calendars and time zones, some functionality cannot be tested on implementations that don't have any other calendars and time zones than iso8601 and UTC. Some of the staging tests fall in this category. We take the opportunity to port these into proper tests, in the intl402/ folder.
14 lines
530 B
JavaScript
14 lines
530 B
JavaScript
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
esid: sec-temporal.zoneddatetime.compare
|
|
description: >
|
|
Disregards the calendar if the exact times of the arguments are equal
|
|
features: [Temporal]
|
|
---*/
|
|
|
|
const arg1 = new Temporal.ZonedDateTime(1572342398_271_986_102n, "-07:00", "iso8601");
|
|
const arg2 = new Temporal.ZonedDateTime(1572342398_271_986_102n, "-07:00", "japanese");
|
|
assert.sameValue(Temporal.ZonedDateTime.compare(arg1, arg2), 0);
|