summaryrefslogtreecommitdiff
path: root/tests/test_main.cpp
AgeCommit message (Collapse)Author
2022-05-20Add a new HashSet templatereduz
* Intended to replace RBSet in most cases. * Optimized for iteration speed
2022-05-16Replace most uses of Map by HashMapreduz
* Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
2022-05-12Add a new HashMap implementationreduz
Adds a new, cleaned up, HashMap implementation. * Uses Robin Hood Hashing (https://en.wikipedia.org/wiki/Hash_table#Robin_Hood_hashing). * Keeps elements in a double linked list for simpler, ordered, iteration. * Allows keeping iterators for later use in removal (Unlike Map<>, it does not do much for performance vs keeping the key, but helps replace old code). * Uses a more modern C++ iterator API, deprecates the old one. * Supports custom allocator (in case there is a wish to use a paged one). This class aims to unify all the associative template usage and replace it by this one: * Map<> (whereas key order does not matter, which is 99% of cases) * HashMap<> * OrderedHashMap<> * OAHashMap<>
2022-05-02Merge pull request #60529 from timothyqiu/theme-validationRémi Verschelde
2022-04-26Rename variable names for some singletonsAaron Franke
2022-04-26Merge pull request #60513 from Calinou/default-font-add-msdf-mipmapRémi Verschelde
Add MSDF and mipmap generation project settings for the default font
2022-04-26Validate theme type/item namesHaoyu Qiu
2022-04-25Add MSDF and mipmap generation project settings for the default fontHugo Locurcio
This can be used to improve Label3D and scaled Control appearance in prototypes.
2022-04-22Add inital TextEdit UnitTestsPaulb23
2022-04-22Use Input::push_input for tests plus extra mouse testingPaulb23
2022-04-07Remove unused legacy testsRémi Verschelde
They haven't been updated for years and still use the old MainLoop basic framework instead of the new doctest one. They're of dubious quality and best redone from scratch using the new framework.
2022-02-12Add sub-pixel glyph positioning support.bruvzg
2022-02-12Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker
2022-02-06Add a unit test suite for AnimationHugo Locurcio
2022-02-04Core: Move Rect2i to its own `rect2i.h` headerRémi Verschelde
And take the opportunity to improve interdependencies a bit with forward declares where possible.
2022-01-19Improve the default project themeHugo Locurcio
The new default project theme uses StyleBoxFlat extensively for a more modern design and better scalability to multiple resolutions. SVG icons are now used in place of PNG icons. While this does not allow for true vector-based icon drawing (icons are still rasterized at load-time), this makes the design work easier for contributors and opens the door to vector drawing in the future (e.g. with polygons or SDFs). Like for editor icons, the SVG header file is now built automatically when a SVG file is changed. This removing the need for running `make_header.py` manually (TODO). The "Use Hidpi" project setting has been removed in favor of a "Default Theme Scale" project setting, which allows creating the default theme at a higher/lower scale than the default. This can be used when designing GUIs with a high base resolution to ensure crisp visuals. Co-authored-by: Yuri Sizov <yuris@humnom.net>
2022-01-14Add tests for Vector2/Vector2i/Vector3/Vector3iAaron Franke
2022-01-03Update copyright statements to 2022Rémi Verschelde
Happy new year to the wonderful Godot community!
2021-11-07Move and organize tests into subfoldersAaron Franke
2021-10-01Implement TextServer GDExtension interface, remove TextServer GDNative ↵bruvzg
interface.
2021-09-01Add CodeEdit breakpoint unit testsPaulb23
2021-09-01Create framework for testing SignalsPaulb23
2021-09-01Allow unit testing SceneTree OjectsPaulb23
2021-06-11Add Time singletonAaron Franke
2021-05-25Fix some warnings raised by GCC-11.1jfons
2021-05-19Add a test suite for VectorHugo Locurcio
This test suite is based on the LocalVector test suite with significant changes made.
2021-05-17Add a test suite for TranslationHugo Locurcio
2021-03-31Add a test suite for DictionaryHugo Locurcio
Co-authored-by: Sarav Noor Singh <saravnoorsingh@Saravs-MBP.T-mobile.com>
2021-03-29add tests for path3dDaniel Kříž
2021-03-07Add unit tests for HashingContextMaximilian Mayer
2021-02-27Added test file and test casesJames Gordon
2021-02-24Merge pull request #45914 from HenryWConklin/45841-xml-entitiesRémi Verschelde
Add support for numeric XML entities to XMLParser
2021-02-20Add a test suite for ResourceHugo Locurcio
2021-02-19Add a test suite for ArraySarav Noor Singh
2021-02-14Add support for numeric XML entities to XMLParserHenry Conklin
* Add support for decimal numeric entities to String::xml_unescape * Add more error checks to String::xml_unescape * Refactor XMLParser to use String::xml_unescape instead of an internal implementation
2021-02-06Add a test suite for the Image classManolis Papadeas
2021-01-24Merge pull request #44797 from a-ivanov/marshall-core-unit-testsRémi Verschelde
Marshall core unit tests
2021-01-24Unit tests for encoding/decoding of base typesAnton Ivanov
2021-01-11Add function `LocalVector::remove_unordered`AndreaCatania
Added LocalVector unit tests.
2021-01-01Update copyright statements to 2021Rémi Verschelde
Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
2020-12-30Added Geometry2D unit testsMarcus Brummer
2020-12-21Add a paged array templatereduz
Used for reusable stacks, or filling arrays from multiple threads efficiently.
2020-12-11Add test suite for `FileAccess`Andrii Doroshenko (Xrayez)
2020-12-07Add test suite for `RandomNumberGenerator`Andrii Doroshenko (Xrayez)
2020-12-03Merge pull request #43536 from jonbonazza/hmacFabio Alessandrelli
feat: HMAC support in Crypto APIs
2020-11-26feat: HMAC support in Crypto APIsJon Bonazza
2020-11-26[Complex Text Layouts] Implement TextServer interface. Implement Fallback ↵bruvzg
TextServer.
2020-11-23Merge pull request #43727 from Calinou/test-add-aabbRémi Verschelde
Add a test suite for AABB
2020-11-20Add a test suite for AABBHugo Locurcio
2020-11-20Merge pull request #43583 from Calinou/test-add-objectRémi Verschelde
Add a test suite for Object