mirror of https://github.com/tc39/test262.git
Regularize some quotes
Some of the similar tests to these use double quotes, some use single.
This commit is contained in:
parent
089c74ce59
commit
c82e2782e6
|
@ -32,7 +32,7 @@ ambiguousStrings.forEach((string) => {
|
|||
assert.throws(
|
||||
RangeError,
|
||||
() => instance.toPlainDateTime(arg),
|
||||
'space is not accepted as a substitute for T prefix'
|
||||
"space is not accepted as a substitute for T prefix"
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@ features: [Temporal, arrow-function]
|
|||
---*/
|
||||
|
||||
const invalidStrings = [
|
||||
'-000000-12-07T03:24:30',
|
||||
'-000000-12-07T03:24:30+01:00[UTC]'
|
||||
"-000000-12-07T03:24:30",
|
||||
"-000000-12-07T03:24:30+01:00[UTC]"
|
||||
];
|
||||
const instance = new Temporal.PlainDate(2000, 5, 2);
|
||||
invalidStrings.forEach((arg) => {
|
||||
|
|
|
@ -32,7 +32,7 @@ ambiguousStrings.forEach((string) => {
|
|||
assert.throws(
|
||||
RangeError,
|
||||
() => instance.toZonedDateTime({ plainTime: arg, timeZone: "UTC" }),
|
||||
'space is not accepted as a substitute for T prefix'
|
||||
"space is not accepted as a substitute for T prefix"
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@ features: [Temporal, arrow-function]
|
|||
---*/
|
||||
|
||||
const invalidStrings = [
|
||||
'-000000-12-07T03:24:30',
|
||||
'-000000-12-07T03:24:30+01:00[UTC]'
|
||||
"-000000-12-07T03:24:30",
|
||||
"-000000-12-07T03:24:30+01:00[UTC]"
|
||||
];
|
||||
const instance = new Temporal.PlainDate(2000, 5, 2);
|
||||
invalidStrings.forEach((arg) => {
|
||||
|
|
|
@ -30,7 +30,7 @@ ambiguousStrings.forEach((string) => {
|
|||
assert.throws(
|
||||
RangeError,
|
||||
() => Temporal.PlainTime.from(arg),
|
||||
'space is not accepted as a substitute for T prefix'
|
||||
"space is not accepted as a substitute for T prefix"
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@ features: [Temporal, arrow-function]
|
|||
---*/
|
||||
|
||||
const invalidStrings = [
|
||||
'-000000-12-07T03:24:30',
|
||||
'-000000-12-07T03:24:30+01:00[UTC]'
|
||||
"-000000-12-07T03:24:30",
|
||||
"-000000-12-07T03:24:30+01:00[UTC]"
|
||||
];
|
||||
invalidStrings.forEach((arg) => {
|
||||
assert.throws(
|
||||
|
|
|
@ -32,7 +32,7 @@ ambiguousStrings.forEach((string) => {
|
|||
assert.throws(
|
||||
RangeError,
|
||||
() => instance.equals(arg),
|
||||
'space is not accepted as a substitute for T prefix'
|
||||
"space is not accepted as a substitute for T prefix"
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@ features: [Temporal, arrow-function]
|
|||
---*/
|
||||
|
||||
const invalidStrings = [
|
||||
'-000000-12-07T03:24:30',
|
||||
'-000000-12-07T03:24:30+01:00[UTC]'
|
||||
"-000000-12-07T03:24:30",
|
||||
"-000000-12-07T03:24:30+01:00[UTC]"
|
||||
];
|
||||
const instance = new Temporal.PlainTime(12, 34, 56, 987, 654, 321);
|
||||
invalidStrings.forEach((arg) => {
|
||||
|
|
|
@ -32,7 +32,7 @@ ambiguousStrings.forEach((string) => {
|
|||
assert.throws(
|
||||
RangeError,
|
||||
() => instance.since(arg),
|
||||
'space is not accepted as a substitute for T prefix'
|
||||
"space is not accepted as a substitute for T prefix"
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@ features: [Temporal, arrow-function]
|
|||
---*/
|
||||
|
||||
const invalidStrings = [
|
||||
'-000000-12-07T03:24:30',
|
||||
'-000000-12-07T03:24:30+01:00[UTC]'
|
||||
"-000000-12-07T03:24:30",
|
||||
"-000000-12-07T03:24:30+01:00[UTC]"
|
||||
];
|
||||
const instance = new Temporal.PlainTime(12, 34, 56, 987, 654, 321);
|
||||
invalidStrings.forEach((arg) => {
|
||||
|
|
|
@ -32,7 +32,7 @@ ambiguousStrings.forEach((string) => {
|
|||
assert.throws(
|
||||
RangeError,
|
||||
() => instance.until(arg),
|
||||
'space is not accepted as a substitute for T prefix'
|
||||
"space is not accepted as a substitute for T prefix"
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@ features: [Temporal, arrow-function]
|
|||
---*/
|
||||
|
||||
const invalidStrings = [
|
||||
'-000000-12-07T03:24:30',
|
||||
'-000000-12-07T03:24:30+01:00[UTC]'
|
||||
"-000000-12-07T03:24:30",
|
||||
"-000000-12-07T03:24:30+01:00[UTC]"
|
||||
];
|
||||
const instance = new Temporal.PlainTime(12, 34, 56, 987, 654, 321);
|
||||
invalidStrings.forEach((arg) => {
|
||||
|
|
|
@ -32,7 +32,7 @@ ambiguousStrings.forEach((string) => {
|
|||
assert.throws(
|
||||
RangeError,
|
||||
() => instance.withPlainTime(arg),
|
||||
'space is not accepted as a substitute for T prefix'
|
||||
"space is not accepted as a substitute for T prefix"
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@ features: [Temporal, arrow-function]
|
|||
---*/
|
||||
|
||||
const invalidStrings = [
|
||||
'-000000-12-07T03:24:30',
|
||||
'-000000-12-07T03:24:30+01:00[UTC]'
|
||||
"-000000-12-07T03:24:30",
|
||||
"-000000-12-07T03:24:30+01:00[UTC]"
|
||||
];
|
||||
const instance = new Temporal.ZonedDateTime(1_000_000_000_000_000_000n, "UTC");
|
||||
invalidStrings.forEach((arg) => {
|
||||
|
|
Loading…
Reference in New Issue