godot/tests
Dan Nicholson 2dd409fd70 Improve locale comparison
Since 9456454109, country specific locales are always preferred over
country-less locales even when the OS locale country doesn't match. For
example, running the Godot editor with locale es_ES will result in the
es_AR locale being chosen even though the es locale would be better.

The change happened because the score of the es_AR locale and the es
locale are the same when comparing to es_ES. Change this by parsing
locale strings into a Locale structure and decreasing the score when
script, country or variant are set in both but not matched. For the
es_ES case, this causes the es_AR score to be decreased since the
countries don't match. On the other hand, the es locale is not decreased
since it doesn't specify a country.
2024-11-12 06:06:50 -07:00
..
core Improve locale comparison 2024-11-12 06:06:50 -07:00
data Add unit tests for CryptoKey 2024-03-01 07:17:59 +00:00
python_build SCons: Add method to generate raw cstrings 2024-07-31 14:22:04 -05:00
scene Merge pull request #97157 from pafuent/fixing_tree_item_get_prev_wrap 2024-10-25 13:03:42 -05:00
servers Use a heap to store traversable polygons for pathfinding 2024-09-01 11:24:14 +09:00
create_test.py [Tests] Improve argument description and snake_case name conversion of test generator script 2024-09-04 16:04:31 +02:00
display_server_mock.h Add input event callback to DisplayServerHeadless 2024-06-05 20:34:35 +02:00
SCsub SCons: Add unobtrusive type hints in SCons files 2024-09-25 09:34:35 -05:00
test_macros.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
test_macros.h Fix TabBar initialization issue and add tests 2024-09-20 18:49:46 -04:00
test_main.cpp Implement array based hash map 2024-10-24 21:34:12 +03:00
test_main.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
test_tools.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
test_utils.cpp Use subfolder for temporary test files 2024-06-05 20:31:42 +02:00
test_utils.h Use subfolder for temporary test files 2024-06-05 20:31:42 +02:00
test_validate_testing.h Add PackedVector4Array Variant type 2024-05-03 00:58:27 +02:00