Skip to content
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

Closed
wants to merge 17 commits into from

Conversation

Kingwl
Copy link
Member

@Kingwl Kingwl commented Jul 16, 2021

This proposal is currently at "stage 3".

  • Array.p.findLast
  • Array.p.findLastIndex
  • %TypedArray%.p.findLast
  • %TypedArray%.p.findLastIndex
  • Array.p.Symbol.unscopables

@Kingwl Kingwl marked this pull request as ready for review July 16, 2021 07:24
Copy link
Contributor

@rwaldron rwaldron left a 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.

@rwaldron
Copy link
Contributor

Thanks for the updates. I will review this week

Copy link
Contributor

@jugglinmike jugglinmike left a 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!

@Kingwl
Copy link
Member Author

Kingwl commented Jul 20, 2021

Thanks for the review.

rwaldron
rwaldron previously approved these changes Jul 20, 2021
@rwaldron
Copy link
Contributor

Once @jugglinmike give this R+, it's good to go.

Copy link
Contributor

@jugglinmike jugglinmike left a 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?

@Kingwl
Copy link
Member Author

Kingwl commented Jul 27, 2021

Sorry. I have missed these case.

@rwaldron rwaldron dismissed jugglinmike’s stale review July 28, 2021 17:51

Corrections made.

@rwaldron
Copy link
Contributor

Manually merged

@rwaldron rwaldron closed this Jul 28, 2021
@Kingwl Kingwl deleted the array-find-from-last-proposal-tests branch July 29, 2021 01:40
@Kingwl
Copy link
Member Author

Kingwl commented Jul 29, 2021

Thanks!

@jugglinmike
Copy link
Contributor

These tests include the error that gh-3113 fixed in similar tests. @Kingwl would you mind making the same correction? /cc @marjakh

jugglinmike added a commit that referenced this pull request Jul 31, 2021
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
@jugglinmike
Copy link
Contributor

I had some time today, so I wrote that patch: gh-3126

rwaldron pushed a commit that referenced this pull request Aug 2, 2021
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
rwaldron pushed a commit that referenced this pull request Aug 10, 2021
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants