Skip to content

Add tests to the Ellipse, Artboard, and Fill tools #2181

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
merged 5 commits into from
Mar 7, 2025

Conversation

0HyperCube
Copy link
Member

@0HyperCube 0HyperCube commented Jan 6, 2025

A not very good attempt at #1490

Closes #2146 because it broke the test.

@0HyperCube 0HyperCube force-pushed the improve-testing-utils branch from e73b514 to 932248d Compare March 6, 2025 22:37
@0HyperCube 0HyperCube changed the title WIP improve testing utilities Add tests to ellipse, artboard, and fill tools Mar 6, 2025
@0HyperCube 0HyperCube marked this pull request as ready for review March 6, 2025 22:46
@0HyperCube 0HyperCube requested a review from Keavon March 6, 2025 22:46
Copy link
Member

@Keavon Keavon left a comment

Choose a reason for hiding this comment

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

Fantastic, thank you for pushing for having more tests!

@Keavon Keavon changed the title Add tests to ellipse, artboard, and fill tools Add tests to the Ellipse, Artboard, and Fill tools Mar 7, 2025
@Keavon Keavon enabled auto-merge (squash) March 7, 2025 01:35
@Keavon
Copy link
Member

Keavon commented Mar 7, 2025

A not very good attempt at #1490

Is that accurate or did that get referenced in the wrong ticket? I didn't see changes relating to that when I read the diff.

@Keavon Keavon merged commit b171eeb into master Mar 7, 2025
4 checks passed
@Keavon Keavon deleted the improve-testing-utils branch March 7, 2025 02:13
@0HyperCube
Copy link
Member Author

@Keavon it does provide a system where an identifier can be used instead of an index to access an input (see changes in this PR to the codegen.rs). However I have only used these as part of the new tests and haven't yet modified other instances of the indices. An example of getting the input from an instrumented graph:

instrumented.grab_protonode_input::<ellipse::RadiusXInput>(&vec![ellipse_node], &editor.runtime).unwrap()

@Keavon
Copy link
Member

Keavon commented Mar 7, 2025

I see, that's cool! Looking forward to rolling that out throughout the rest of the code. I like that syntax.

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.

Artboard constrain to square broken on tilted document
2 participants