Debian Codegraph @

js/src/tests/test262/built-ins/Temporal/PlainDateTime/from/argument-string-comma-decimal-separator.js

raw
1 // |reftest| shell-option(--enable-temporal) skip-if(!this.hasOwnProperty('Temporal')||!xulRuntime.shell) -- Temporal is not enabled unconditionally, requires shell-options
2 // Copyright (C) 2022 Igalia, S.L. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: sec-temporal.plaindatetime.from
7 description: Comma may be used as a decimal separator
8 features: [Temporal]
9 includes: [temporalHelpers.js]
10 ---*/
11
12 TemporalHelpers.assertPlainDateTime(
13 Temporal.PlainDateTime.from("1976-11-18T15:23:30,12"),
14 1976, 11, "M11", 18, 15, 23, 30, 120, 0, 0,
15 "comma decimal separator"
16 );
17
18 reportCompare(0, 0);