mirror of https://github.com/tc39/test262.git
Revert #3250
Fixes #3272 by reverting a change to tests of `Temporal.PlainDateTime.prototype.since()`. See tc39/proposal-temporal#1878 for details.
This commit is contained in:
parent
396fc064d8
commit
2c6abf5138
|
@ -21,6 +21,6 @@ TemporalHelpers.assertDuration(feb21.since(feb20, { largestUnit: "weeks" }), 0,
|
|||
|
||||
const lastFeb20 = Temporal.PlainDate.from("2020-02-29");
|
||||
const lastFeb21 = Temporal.PlainDate.from("2021-02-28");
|
||||
TemporalHelpers.assertDuration(lastFeb21.since(lastFeb20, { largestUnit: "years" }), /* years = */ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, "end of February, years");
|
||||
TemporalHelpers.assertDuration(lastFeb21.since(lastFeb20, { largestUnit: "months" }), 0, /* months = */ 12, 0, 0, 0, 0, 0, 0, 0, 0, "end of February, months");
|
||||
TemporalHelpers.assertDuration(lastFeb21.since(lastFeb20, { largestUnit: "years" }), 0, /* months = */ 11, 0, /* days = */ 28, 0, 0, 0, 0, 0, 0, 0, "end of February, years");
|
||||
TemporalHelpers.assertDuration(lastFeb21.since(lastFeb20, { largestUnit: "months" }), 0, /* months = */ 11, 0, /* days = */ 28, 0, 0, 0, 0, 0, 0, "end of February, months");
|
||||
TemporalHelpers.assertDuration(lastFeb21.since(lastFeb20, { largestUnit: "weeks" }), 0, 0, /* weeks = */ 52, /* days = */ 1, 0, 0, 0, 0, 0, 0, "end of February, weeks");
|
||||
|
|
Loading…
Reference in New Issue