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

improve the C API test #302

Merged
merged 1 commit into from
Dec 2, 2023
Merged

improve the C API test #302

merged 1 commit into from
Dec 2, 2023

Conversation

Kiyoshika
Copy link
Member

This includes margin and padding (for later) into the node_t struct and testing the "public" API instead of the struct internals (since that's how they will be used by user agents.)

There's also some slight reorganization such as moving Position struct into the properties (as well as creating a properties.h header that does something similar to kind of mimic the Rust structure)

@Kiyoshika Kiyoshika requested a review from a team December 2, 2023 19:22
double bottom;
};

#endif
Copy link
Collaborator

Choose a reason for hiding this comment

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

2023-12-02_12-31

Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like the other files have an extra newline except for this one, maybe that's the issue?

Copy link
Member Author

Choose a reason for hiding this comment

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

I just switched to a new editor, seems like Zed was autoinserting the newlines at the end but Rust Rover isn't. Didn't know that was a thing

Copy link
Collaborator

Choose a reason for hiding this comment

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

Not a huge thing. It's the kind of thing editors usually take care of. But because I'm kind of detail oriented, the red circle in the GitHub view always catches my eye.

Copy link
Member Author

@Kiyoshika Kiyoshika Dec 2, 2023

Choose a reason for hiding this comment

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

Yeah, I just looked it up, apparently having a newline at the end of files has historically been significant (at least for C/C++ files) so Github was probably flagging that. I just fixed it

@Kiyoshika Kiyoshika merged commit 7497294 into main Dec 2, 2023
5 checks passed
@Kiyoshika Kiyoshika deleted the improve-c-api-test branch December 2, 2023 19:48
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