mirror of https://github.com/tc39/test262.git
Added test for non-iso calendars for Temporal.PlainMonthDay.from
This commit is contained in:
parent
e5a7450095
commit
2df6c7d29a
|
@ -0,0 +1,17 @@
|
|||
// Copyright (C) 2023 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-temporal.plainmonthday.from
|
||||
description: Verify that the result of ToTemporalMonthDay preserves year information for Non-ISO calendars.
|
||||
info: |
|
||||
sec-temporal.plainmonthday.from step 3:
|
||||
3. Return ? ToTemporalMonthDay(_item_, _options_).
|
||||
sec-temporal-totemporalmonthday step 11.:
|
||||
11. Set result to ? CreateTemporalMonthDay(_result_.[[Month]], _result_.[[Day]], _calendar_, _result_.[[Year]]).
|
||||
includes: [temporalHelpers.js]
|
||||
features: [Temporal]
|
||||
---*/
|
||||
|
||||
const pmd = Temporal.PlainMonthDay.from("2023-01-01[u-ca=hebrew]")
|
||||
TemporalHelpers.assertPlainMonthDay(pmd, "M04", 8); // 2023-01-01 corresponds to 8 Tevet in Hebrew Calendar.
|
Loading…
Reference in New Issue