Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Enhancing Tests.js logic #76

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

Merged
ignacio-chiazzo merged 1 commit into ignacio-chiazzo:master from hot9cups:master
Oct 23, 2022
Merged

Conversation

Copy link
Collaborator

@hot9cups hot9cups commented Oct 23, 2022
edited
Loading

  • Solves Modifying Tests.js to handle multiple test exports #68
  • Modified Tests.js to get rid of hardcoding and work for files having variable number of test methods. Now any number of tests can be exported and can also be named anything(As opposed to being 'test' from earlier).
  • Modified 2Sum_Test.js to demonstrate an example.
    (Note, I manually tested and ensured both the test methods inside 2Sum_Test.js were actually being invoked, since we had a bug earlier where we were exporting all functions but only test() was being invoked)

- Modified Tests.js to get rid of hardcoding and work for files having variable number of test methods. Now any number of tests can be exported and can also be named anything(As opposed to being 'test' from earlier)
Copy link
Owner

@ignacio-chiazzo ignacio-chiazzo left a comment

Choose a reason for hiding this comment

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

Nice work!

I tested manually too and Object.keys(tests) did the trick!

Thanks

@ignacio-chiazzo ignacio-chiazzo merged commit a3d646a into ignacio-chiazzo:master Oct 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@ignacio-chiazzo ignacio-chiazzo ignacio-chiazzo approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /