summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
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 #43781 from MaxMutantMayer/regex_unit_testsRémi Verschelde
Move and add new RegEx test cases
2020-11-23Merge pull request #43727 from Calinou/test-add-aabbRémi Verschelde
Add a test suite for AABB
2020-11-22Move and add new RegEx test casesMaximilian Mayer
Test cases for 'RegEx' are moved from 'test_string.h' to own test suite in 'test_regex.h'. Additionally, new tests are introduced and '_init' is removed as it isn't implemented/used anywhere.
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
2020-11-20Merge pull request #43514 from Calinou/test-add-rect2-rect2iRémi Verschelde
Add a test suite for Rect2 and Rect2i
2020-11-20Add a test suite for ObjectHugo Locurcio
2020-11-20Add a test suite for Rect2 and Rect2iHugo Locurcio
2020-11-20Style fix after #43517Rémi Verschelde
2020-11-20Merge pull request #43517 from Calinou/test-add-jsonRémi Verschelde
Add a test suite for JSON
2020-11-20doctest: Do not override command-line optionsAndrii Doroshenko (Xrayez)
Those options were likely copy-pasted from documentation examples. This change also allows to break in the debugger by default when assertions fail, and this can be configured via command-line interface.
2020-11-16Remove empty lines around braces with the formatting scriptAaron Franke
2020-11-16Add a test suite for ConfigFileHugo Locurcio
2020-11-16Merge pull request #43578 from Calinou/test-add-nodepathRémi Verschelde
Add a test suite for NodePath
2020-11-16Merge pull request #43572 from Calinou/test-add-pckpackerRémi Verschelde
Add a test suite for PCKPacker
2020-11-15Add a test suite for NodePathHugo Locurcio
2020-11-15Add a test suite for PCKPackerHugo Locurcio
2020-11-14Add a test suite for JSONHugo Locurcio
This test suite doesn't attempt to test error/invalid cases since the current JSON parser has a lot of false negatives.
2020-11-13Add a test suite for CurveHugo Locurcio
2020-11-09Variant: Rename Type::_RID to Type::RIDRémi Verschelde
The underscore prefix was used to avoid the conflict between the `RID` class name and the matching enum value in `Variant::Type`. This can be fixed differently by prefixing uses of the `RID` class in `Variant` with the scope resolution operator, as done already for `AABB`.
2020-11-07Reorganized core/ directory, it was too fatty alreadyreduz
-Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
2020-11-06Refactored Variant Operators.reduz
-Using classes to call and a table -For typed code (GDS or GDNative), can obtain functions to call prevalidated or ptr.
2020-11-03Remove `Color.contrasted()` as its behavior is barely usefulHugo Locurcio
Returning the most contrasting color isn't a trivial task, as there are often many possible choices. It's usually best left for the user to implement using a script.
2020-10-18Refactor MethodBind to use variadic templatesreduz
Removed make_binders and the old style generated binders.
2020-10-12core/command_queue_mt: Customizable size and testsLyuma
Adds unit tests for command_queue_mt.h/cpp In this revision, some unit tests will fail due to issue #42107.
2020-09-18Fix typos with codespellRémi Verschelde
Using codespell 1.17.1. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang curvelinear dof doubleclick fave findn leapyear lod merchantibility nd numer ois ony que seeked synching te uint unselect webp EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
2020-09-16Merge pull request #42013 from Xrayez/fix-list-swapRémi Verschelde
Fix `List` swap behavior on front, back and adjacent elements
2020-09-14Add test cases for numeric literals with underscoresPawel Lampe
2020-09-13Add a test suite for `List`Andrii Doroshenko (Xrayez)
Adds a number of test cases for `List::swap()`.
2020-09-11Move GDNative `String` tests to respective moduleAndrii Doroshenko (Xrayez)
GDNative-specific tests moved out of main `tests/` folder into `modules/gdnative/tests`. Include path for GDNative headers are still hardcoded in `tests/SCsub`, but made conditional now. Also fixed test case tag typos. Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
2020-09-03[Complex Test Layouts] Change `String` to use UTF-32 encoding on all platforms.bruvzg
2020-09-02Fix doctest runner ignoring all arguments starting with --teststrank
Instead of just the one argument that is exactly --test. The long-form arguments --test-case and --test-suite were ignored.
2020-09-02Register GDScript test tools as test commands to run via command-lineAndrii Doroshenko (Xrayez)
2020-09-02Move GDScript tests to respective folder under modulesAndrii Doroshenko (Xrayez)
2020-09-01Add GDScript disassemblerGeorge Marques
2020-09-01Fix Color test cases for RGBAAaron Franke
2020-08-31Merge pull request #40955 from Calinou/test-add-expressionRémi Verschelde
Add a test suite for Expression
2020-08-27Add a test suite for ExpressionHugo Locurcio
This also makes the first parameter of `Expression::execute()` optional from C++. Previously, it was only optional in the scripting API.
2020-08-19Add a test suite for GradientHugo Locurcio
2020-08-16Port ClassDB tests to use doctestAndrii Doroshenko (Xrayez)
Extracted the most minimal core initialization functionality from `setup()` and `setup2()` so that `ClassDB` could be tested properly (input, audio, rendering, physics etc, are excluded). Display and rendering servers/singletons are not initialized at all. Due to the fact that most subsystems are disabled, fixed various crashes in the process (in order): - `AcceptDialog` OK/cancel swap behavior (used `DisplayServer` while `register_scene_types()`); - `make_default_theme` which depends on `RenderingServer`; - `XRServer` singleton access while calling `register_modules_types()`; - hidden bug in a way joypads are cleaned up (MacOS and Linux only). Removed manual `ClassDB` init/cleanup calls from `test_validate_testing.h`. ClassDB tests: Co-authored-by: Ignacio Etcheverry <ignalfonsore@gmail.com>
2020-08-14Merge pull request #41117 from 3akev/masterRémi Verschelde
Port OrderedHashMap tests to doctest
2020-08-11Merge pull request #40940 from fire/tests-port-basisRémi Verschelde
Port Basis tests to use doctest.
2020-08-08Port OrderedHashMap tests to doctestAladdin Al-Khafaji
2020-08-02Stringify `Variant` compatible types for doctest outputAndrii Doroshenko (Xrayez)
2020-08-01Port Basis tests to use doctest.K. S. Ernest (iFire) Lee
2020-07-31Fix memory leak in test argsAndrii Doroshenko (Xrayez)
2020-07-31Merge pull request #40928 from bruvzg/fix_test_heap_use_after_freeRémi Verschelde
Fix heap use after free in the doctest "main".