diff --git a/test/intl402/Temporal/PlainYearMonth/prototype/with/minimum-valid-year-month.js b/test/intl402/Temporal/PlainYearMonth/prototype/with/minimum-valid-year-month.js new file mode 100644 index 0000000000..99f91635a6 --- /dev/null +++ b/test/intl402/Temporal/PlainYearMonth/prototype/with/minimum-valid-year-month.js @@ -0,0 +1,14 @@ +// 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.plainyearmonth.prototype.with +description: Can set the minimum valid year-month for non-ISO8601 calendars. +includes: [temporalHelpers.js] +features: [Temporal] +---*/ + +const apr2000 = new Temporal.PlainYearMonth(2000, 4, "gregory"); + +TemporalHelpers.assertPlainYearMonth(apr2000.with({year: -271821}), + -271821, 4, "M04", "", "gregory-inverse", 271822);