mirror of
https://github.com/tc39/test262.git
synced 2025-08-18 08:28:27 +02:00
Without custom calendars and time zones there are actually a bunch of things that we now can't test on implementations that don't have non-ISO calendars or non-UTC time zones. (Alternatively, we can say that these are functionalities that those implementations don't have to implement.)
13 lines
459 B
JavaScript
13 lines
459 B
JavaScript
// Copyright (C) 2022 Igalia, S.L. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
esid: sec-temporal.plainyearmonth.compare
|
|
description: compare() does not take the calendar into account
|
|
features: [Temporal]
|
|
---*/
|
|
|
|
const ym1 = new Temporal.PlainYearMonth(2000, 1, "iso8601", 1);
|
|
const ym2 = new Temporal.PlainYearMonth(2000, 1, "gregory", 1);
|
|
assert.sameValue(Temporal.PlainYearMonth.compare(ym1, ym2), 0);
|