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 destructuring binding (procedurally generated) #584

Merged
merged 6 commits into from
May 11, 2016

Conversation

jugglinmike
Copy link
Contributor

Although the bulk of the work here is in new test cases, this change set
includes two updates to previously-accepted files:

  • Adding the esid frontmatter tag (which was designed in the time since the
    files were first written)
  • Adding omitted destructuring binding forms (which I simply did not originally
    identify)

To help facilitate review, I've organized all procedurally-generated changes
into dedicated commits.

@jugglinmike jugglinmike changed the title Generation dstr bndng Add tests for destructuring binding (procedurally generated) Apr 18, 2016
//- vals
iter
//- body
assert.sameValue(doneCallCount, 1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we use any message on these?

On the arrow-function example there's another assertion with the same expected value (assert.sameValue(callCount, 1);) and a message would be very helpful to identify the assertion if it fails.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good idea!

@jugglinmike
Copy link
Contributor Author

Now that gh-601 has landed (thanks @leobalter and @goyakin), the generated
files in this changeset should be updated. This will require rebasing this
branch, which I am happy to do upon request. Of course, my reviewer may do this
as well--just run make.py (I recommend squashing all the changes to generated
files into a single commit).

@leobalter
Copy link
Member

@jugglinmike would you help with the rebase, please?

@jugglinmike
Copy link
Contributor Author

Sure; I have rebased this branch as I suggested above

@leobalter leobalter merged commit 4dac3e4 into tc39:master May 11, 2016
@leobalter
Copy link
Member

I merged it intentionally with a merge commit as I didn't want to squash the generated tests.

Great work, Mike!

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.

2 participants