Skip to content

Optimized 2D Primitives Test Suite: Bug Fixes and Validation Improvements #6693

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

Closed
wants to merge 2 commits into from
Closed

Optimized 2D Primitives Test Suite: Bug Fixes and Validation Improvements #6693

wants to merge 2 commits into from

Conversation

TanmayDhobale
Copy link

Resolves #6686

Changes:

  1. p5.prototype.ellipse: Fixed missing parameters JS Desktop apps #2 and two.js #3, resolving validation issues.

  2. p5.prototype.rect: Handled missing parameter node.js & Java #5 to properly throw validation errors.

  3. p5.prototype.square: Updated to handle missing parameter two.js #3 appropriately.

  4. p5.prototype.line: Fixed a bug where incorrect parameters did not trigger validation errors.

  5. p5.prototype.triangle: Improved error messaging for better clarity.

PR Checklist:

1. In 'p5.prototype.ellipse', fixed missing param #2 and #3 issues.
2. In 'p5.prototype.rect', handled missing param #5 to throw validation error.
3. Updated 'p5.prototype.square' to handle missing param #3 appropriately.
4. Fixed a bug in 'p5.prototype.line' where incorrect parameters did not trigger validation errors.
5. Improved error messaging in 'p5.prototype.triangle' for better clarity.
Copy link

welcome bot commented Jan 4, 2024

🎉 Thanks for opening this pull request! Please check out our contributing guidelines if you haven't already. And be sure to add yourself to the list of contributors on the readme page!

@davepagurek
Copy link
Contributor

It looks like this PR has added a lot of files, are those intentional? Do you mind looking through the diff of this PR and cleaning up the code to make sure only the changes you want are present in the diff?

@TanmayDhobale
Copy link
Author

@davepagurek ahh i think this bcs .history files alot added let me correct it

@TanmayDhobale
Copy link
Author

can u look now ?

@limzykenneth
Copy link
Member

There are still changes to package.json and package-lock.json which should not be committed here.

@TanmayDhobale TanmayDhobale closed this by deleting the head repository Mar 26, 2024
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.

Refactor 2d_primitives.js
3 participants