-
Notifications
You must be signed in to change notification settings - Fork 520
[Temporal] Remove test/staging/Temporal/v8/calendar-date-until.js #4817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[Temporal] Remove test/staging/Temporal/v8/calendar-date-until.js #4817
Conversation
And move functionality into one existing test and one new test.
| for (const largestUnit of units) { | ||
| assert.throws(RangeError, () => from.until(to, { largestUnit }), | ||
| `Can't use ${largestUnit} as largestUnit for PlainDate`); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is covered by test/built-ins/Temporal/PlainDate/prototype/until/largestunit-invalid-string.js
| for (const smallestUnit of units) { | ||
| assert.throws(RangeError, () => from.until(to, { smallestUnit }), | ||
| `Can't use ${smallestUnit} as smallestUnit for PlainDate`); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this by test/built-ins/Temporal/PlainDate/prototype/until/smallestunit-invalid-string.js
| for (const largestUnit of units) { | ||
| for (const smallestUnit of units) { | ||
| assert.throws(RangeError, () => from.until(to, { largestUnit, smallestUnit }), | ||
| `Can't use ${largestUnit} and ${smallestUnit} as largestUnit and smallestUnit for PlainDate`); | ||
| assert.throws(RangeError, () => from.until(to, { smallestUnit, largestUnit }), | ||
| `Can't use ${smallestUnit} and ${largestUnit} as largestUnit and smallestUnit for PlainDate`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't covered yet, but I don't think we need the two calls in the loop (unless you meant to do something different in the second one?)
If we keep it, please add the parallel test for since
| const date19970716 = Temporal.PlainDate.from("1997-07-16"); | ||
| const date19971216 = Temporal.PlainDate.from("1997-12-16"); | ||
| const date19971230 = Temporal.PlainDate.from("1997-12-30"); | ||
| const date20110716 = Temporal.PlainDate.from("2011-07-16"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make the corresponding change to the since test
And move functionality into one existing test and one new test.