-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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 unit tests for Decal
#93463
base: master
Are you sure you want to change the base?
Add unit tests for Decal
#93463
Conversation
Well, it seems I do not know how to use the clang formatter from Visual Studio. I am sorry. |
tests/scene/test_decal.h
Outdated
|
||
#ifndef TEST_DECAL_H | ||
#define TEST_DECAL_H | ||
#include "scene/main/scene_tree.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#include "scene/main/scene_tree.h" |
Don't need to include this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can I somehow test my code before opening the pull request?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By building it and running with --test
, or enabling CI on your own fork
Co-authored-by: A Thousand Ships <[email protected]>
Part of the issue: #43440
As stated in the description, I called various setter and getters, then checking whether the function get_aabb() returns the expected result.