test262/test/built-ins/Temporal/PlainDate/calendar-case-insensitive.js

14 lines
400 B
JavaScript
Raw Normal View History

2022-09-07 10:30:00 +02:00
// Copyright (C) 2022 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
2022-09-13 20:21:30 +02:00
esid: sec-temporal.plaindate
2022-09-07 10:30:00 +02:00
description: Calendar names are case-insensitive
features: [Temporal]
---*/
const arg = "iSo8601";
2022-09-07 10:30:00 +02:00
const result = new Temporal.PlainDate(2000, 5, 2, arg);
assert.sameValue(result.calendarId, "iso8601", "Calendar is case-insensitive");