Test PlainDate.from with a number.

This commit is contained in:
Ms2ger 2022-01-19 16:51:24 +01:00 committed by Rick Waldron
parent 4ec469c68c
commit b81ce78746
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
// 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.plaindate.from
description: various interesting string arguments.
includes: [temporalHelpers.js]
features: [Temporal]
---*/
const result = Temporal.PlainDate.from(19761118);
TemporalHelpers.assertPlainDate(result, 1976, 11, "M11", 18);