-
Notifications
You must be signed in to change notification settings - Fork 461
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
Add tests for proposal array find from last #3045
Conversation
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 add to features.txt:
# Array.prototype.findLast & Array.prototype.findLastIndex
# https://github.com/tc39/proposal-array-find-from-last
array-find-from-last
Add to meta data in all files:
features: [array-find-from-last]
Fix all license headers to read:
// Copyright (C) 2021 Microsoft. All rights reserved.
test/built-ins/Array/prototype/findLast/array-altered-during-loop.js
Outdated
Show resolved
Hide resolved
test/built-ins/Array/prototype/findLast/array-altered-during-loop.js
Outdated
Show resolved
Hide resolved
Thanks for the updates. I will review this week |
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.
Thanks for writing these!
test/built-ins/Array/prototype/findLast/array-altered-during-loop.js
Outdated
Show resolved
Hide resolved
test/built-ins/Array/prototype/findLast/predicate-call-this-strict.js
Outdated
Show resolved
Hide resolved
test/built-ins/Array/prototype/findLast/return-found-value-predicate-result-is-true.js
Outdated
Show resolved
Hide resolved
Thanks for the review. |
Once @jugglinmike give this R+, it's good to go. |
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.
Looks like there are few incorrect assertions. Could you take a look?
test/built-ins/Array/prototype/findLast/array-altered-during-loop.js
Outdated
Show resolved
Hide resolved
test/built-ins/Array/prototype/findLastIndex/array-altered-during-loop.js
Outdated
Show resolved
Hide resolved
test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-call-changes-value.js
Outdated
Show resolved
Hide resolved
test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-call-changes-value.js
Outdated
Show resolved
Hide resolved
test/built-ins/TypedArray/prototype/findLast/predicate-call-changes-value.js
Outdated
Show resolved
Hide resolved
test/built-ins/TypedArray/prototype/findLast/predicate-call-changes-value.js
Outdated
Show resolved
Hide resolved
test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-call-changes-value.js
Outdated
Show resolved
Hide resolved
test/built-ins/TypedArray/prototype/findLastIndex/predicate-call-changes-value.js
Outdated
Show resolved
Hide resolved
Sorry. I have missed these case. |
Manually merged |
Thanks! |
The tests for the "Array findFromLast" proposal were originally authored based on related tests that had already been merged to the repository's `main` branch [1]. While those new tests were under review, a number of tests for the Resizable ArrayBuffer proposal were found to be incorrect [2]. The problem was fixed for the tests in `main`, but because the corresponding tests for "Array findFromLast" were not yet merged, the error persisted there [3]. Apply the same correction to the new tests. [1] #3111 [2] #3113 [3] #3045
I had some time today, so I wrote that patch: gh-3126 |
The tests for the "Array findFromLast" proposal were originally authored based on related tests that had already been merged to the repository's `main` branch [1]. While those new tests were under review, a number of tests for the Resizable ArrayBuffer proposal were found to be incorrect [2]. The problem was fixed for the tests in `main`, but because the corresponding tests for "Array findFromLast" were not yet merged, the error persisted there [3]. Apply the same correction to the new tests. [1] #3111 [2] #3113 [3] #3045
The tests for the "Array findFromLast" proposal were originally authored based on related tests that had already been merged to the repository's `main` branch [1]. While those new tests were under review, a number of tests for the Resizable ArrayBuffer proposal were found to be incorrect [2]. The problem was fixed for the tests in `main`, but because the corresponding tests for "Array findFromLast" were not yet merged, the error persisted there [3]. Apply the same correction to the new tests. [1] #3111 [2] #3113 [3] #3045
This proposal is currently at "stage 3".