mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Test PlainDate.from with a number.
This commit is contained in:
parent
4ec469c68c
commit
b81ce78746
12
test/built-ins/Temporal/PlainDate/from/argument-number.js
Normal file
12
test/built-ins/Temporal/PlainDate/from/argument-number.js
Normal 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);
|
Loading…
x
Reference in New Issue
Block a user