-
-
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 a test suite for Translation #48778
Conversation
Thanks! |
So this passed CI in the PR, but not once merged? We seem to have a bug in our unit testing.
|
I could reproduce the issue once locally, but not on subsequent builds. I suspect that SCons doesn't properly pick up new |
Yeah re-running the CI solved it... we'll have to figure this one out eventually. |
@akien-mga I think the issue is that this part of the test: godot/tests/test_translation.h Lines 57 to 64 in 2be9b5d
assumes that Translation preserves insertion order of the messages (and that get_message_list() returns messages in the same order) but it's not the case since Map is used internally as a storage:godot/core/string/translation.h Line 42 in 2be9b5d
|
Good catch! I guess the test should be changed to use |
Yeah, size check and |
This lead to randomly failing the test as the insertion order is not preserved by Map. Follow-up to godotengine#48778. Co-authored-by: kleonc <[email protected]>
See #43440.