blob: 00cc89176137c2ab9abd97abaddb018ef8009b0a [file] [log] [blame]
// Copyright (C) 2022 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-get-temporal.plainyearmonth.prototype.inleapyear
description: Basic test for inLeapYear
features: [Temporal]
---*/
assert.sameValue((new Temporal.PlainYearMonth(1976, 11)).inLeapYear,
true, "leap year");
assert.sameValue((new Temporal.PlainYearMonth(1977, 11)).inLeapYear,
false, "non-leap year");