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(
|
assert.throws(
|
||||||
RangeError,
|
RangeError,
|
||||||
() => instance.toPlainDateTime(arg),
|
() => 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 = [
|
const invalidStrings = [
|
||||||
'-000000-12-07T03:24:30',
|
"-000000-12-07T03:24:30",
|
||||||
'-000000-12-07T03:24:30+01:00[UTC]'
|
"-000000-12-07T03:24:30+01:00[UTC]"
|
||||||
];
|
];
|
||||||
const instance = new Temporal.PlainDate(2000, 5, 2);
|
const instance = new Temporal.PlainDate(2000, 5, 2);
|
||||||
invalidStrings.forEach((arg) => {
|
invalidStrings.forEach((arg) => {
|
||||||
|
|
|
@ -32,7 +32,7 @@ ambiguousStrings.forEach((string) => {
|
||||||
assert.throws(
|
assert.throws(
|
||||||
RangeError,
|
RangeError,
|
||||||
() => instance.toZonedDateTime({ plainTime: arg, timeZone: "UTC" }),
|
() => 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 = [
|
const invalidStrings = [
|
||||||
'-000000-12-07T03:24:30',
|
"-000000-12-07T03:24:30",
|
||||||
'-000000-12-07T03:24:30+01:00[UTC]'
|
"-000000-12-07T03:24:30+01:00[UTC]"
|
||||||
];
|
];
|
||||||
const instance = new Temporal.PlainDate(2000, 5, 2);
|
const instance = new Temporal.PlainDate(2000, 5, 2);
|
||||||
invalidStrings.forEach((arg) => {
|
invalidStrings.forEach((arg) => {
|
||||||
|
|
|
@ -30,7 +30,7 @@ ambiguousStrings.forEach((string) => {
|
||||||
assert.throws(
|
assert.throws(
|
||||||
RangeError,
|
RangeError,
|
||||||
() => Temporal.PlainTime.from(arg),
|
() => 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 = [
|
const invalidStrings = [
|
||||||
'-000000-12-07T03:24:30',
|
"-000000-12-07T03:24:30",
|
||||||
'-000000-12-07T03:24:30+01:00[UTC]'
|
"-000000-12-07T03:24:30+01:00[UTC]"
|
||||||
];
|
];
|
||||||
invalidStrings.forEach((arg) => {
|
invalidStrings.forEach((arg) => {
|
||||||
assert.throws(
|
assert.throws(
|
||||||
|
|
|
@ -32,7 +32,7 @@ ambiguousStrings.forEach((string) => {
|
||||||
assert.throws(
|
assert.throws(
|
||||||
RangeError,
|
RangeError,
|
||||||
() => instance.equals(arg),
|
() => 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 = [
|
const invalidStrings = [
|
||||||
'-000000-12-07T03:24:30',
|
"-000000-12-07T03:24:30",
|
||||||
'-000000-12-07T03:24:30+01:00[UTC]'
|
"-000000-12-07T03:24:30+01:00[UTC]"
|
||||||
];
|
];
|
||||||
const instance = new Temporal.PlainTime(12, 34, 56, 987, 654, 321);
|
const instance = new Temporal.PlainTime(12, 34, 56, 987, 654, 321);
|
||||||
invalidStrings.forEach((arg) => {
|
invalidStrings.forEach((arg) => {
|
||||||
|
|
|
@ -32,7 +32,7 @@ ambiguousStrings.forEach((string) => {
|
||||||
assert.throws(
|
assert.throws(
|
||||||
RangeError,
|
RangeError,
|
||||||
() => instance.since(arg),
|
() => 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 = [
|
const invalidStrings = [
|
||||||
'-000000-12-07T03:24:30',
|
"-000000-12-07T03:24:30",
|
||||||
'-000000-12-07T03:24:30+01:00[UTC]'
|
"-000000-12-07T03:24:30+01:00[UTC]"
|
||||||
];
|
];
|
||||||
const instance = new Temporal.PlainTime(12, 34, 56, 987, 654, 321);
|
const instance = new Temporal.PlainTime(12, 34, 56, 987, 654, 321);
|
||||||
invalidStrings.forEach((arg) => {
|
invalidStrings.forEach((arg) => {
|
||||||
|
|
|
@ -32,7 +32,7 @@ ambiguousStrings.forEach((string) => {
|
||||||
assert.throws(
|
assert.throws(
|
||||||
RangeError,
|
RangeError,
|
||||||
() => instance.until(arg),
|
() => 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 = [
|
const invalidStrings = [
|
||||||
'-000000-12-07T03:24:30',
|
"-000000-12-07T03:24:30",
|
||||||
'-000000-12-07T03:24:30+01:00[UTC]'
|
"-000000-12-07T03:24:30+01:00[UTC]"
|
||||||
];
|
];
|
||||||
const instance = new Temporal.PlainTime(12, 34, 56, 987, 654, 321);
|
const instance = new Temporal.PlainTime(12, 34, 56, 987, 654, 321);
|
||||||
invalidStrings.forEach((arg) => {
|
invalidStrings.forEach((arg) => {
|
||||||
|
|
|
@ -32,7 +32,7 @@ ambiguousStrings.forEach((string) => {
|
||||||
assert.throws(
|
assert.throws(
|
||||||
RangeError,
|
RangeError,
|
||||||
() => instance.withPlainTime(arg),
|
() => 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 = [
|
const invalidStrings = [
|
||||||
'-000000-12-07T03:24:30',
|
"-000000-12-07T03:24:30",
|
||||||
'-000000-12-07T03:24:30+01:00[UTC]'
|
"-000000-12-07T03:24:30+01:00[UTC]"
|
||||||
];
|
];
|
||||||
const instance = new Temporal.ZonedDateTime(1_000_000_000_000_000_000n, "UTC");
|
const instance = new Temporal.ZonedDateTime(1_000_000_000_000_000_000n, "UTC");
|
||||||
invalidStrings.forEach((arg) => {
|
invalidStrings.forEach((arg) => {
|
||||||
|
|
Loading…
Reference in New Issue