-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
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
GDScript: Replace assert()
with Utils.check()
in tests
#96229
GDScript: Replace assert()
with Utils.check()
in tests
#96229
Conversation
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.
LGTM! 👍 The changes look trivial.
The only potential concerns:
- Any reason why
const Utils = preload("../../utils.notest.gd")
was used before overclass_name Utils
? - Any reason why
push_error
was used before overprinterr
?
I wasn't sure previously if
There is also an issue with the fact that an active debugger is required to get the GDScript call stack. For this reason |
Hmm, kinda hacky but wouldn't adding |
No, |
Thanks! |
assert()
is not evaluated in non-debug build, so some conditions in our GDScript tests are currently not checked in non-debug builds. Please do not useassert()
for anything other than testing theassert()
itself. Thanks to @kleonc.