summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2021-12-30Fix Array and Dictionary id() and dictionary test bugcdemirer
2021-12-21Refactor render_mode in shaders, forbid declaring duplicatesYuri Roubinsky
2021-12-16Make `--doctool` locale awareHaoyu Qiu
* Adds `indent(str)` to `String`: * Indent the (multiline) string with the given indentation. * This method is added in order to keep the translated XML correctly indented. * Moves the loading of tool/doc translation into `editor/editor_translation.{h,cpp}`. * This will be used from both `EditorSettings` and the doc tool from `main`. * Makes use of doc translation when generating XML class references, and setup the translation locale based on `-l LOCALE` CLI parameter. The XML class reference won't be translated if `-l LOCALE` parameter is not given, or when it's `-l en`.
2021-12-09Replace String comparisons with "", String() to is_empty()Nathan Franke
Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
2021-12-09align to horizontal_alignment, valign to vertical_alignment, relatedNathan Franke
2021-12-08Make `compile` shader function to use struct instead long parameter listYuri Roubinsky
2021-12-07Merge pull request #35901 from nathanfranke/pool-byte-array-subarray-exclusiveRémi Verschelde
2021-12-02Merge pull request #55545 from akien-mga/doc-aabb-has_pointRémi Verschelde
AABB: Improve docs and test for `has_point`
2021-12-02Merge pull request #55474 from akien-mga/copy-operators-no-referenceRémi Verschelde
2021-12-02AABB: Improve docs and test for `has_point`Rémi Verschelde
Contrarily to the 2D Rect2i counterpart, it doesn't make much sense in 3D and for floating-point AABBs to exclude points on some of its faces.
2021-12-02Merge pull request #53868 from aaronfranke/curveRémi Verschelde
2021-12-01Allow using empty statements in the shader, added formatting warningYuri Roubinsky
2021-11-30Improve Curve with const and real_tAaron Franke
2021-11-30Don't return reference on copy assignment operatorsRémi Verschelde
We prefer to prevent using chained assignment (`T a = b = c = T();`) as this can lead to confusing code and subtle bugs. According to https://en.wikipedia.org/wiki/Assignment_operator_(C%2B%2B), C++ allows any arbitrary return type, so this is standard compliant. This could be re-assessed if/when we have an actual need for a behavior more akin to that of the C++ STL, for now this PR simply changes a handful of cases which were inconsistent with the rest of the codebase (`void` return type was already the most common case prior to this commit).
2021-11-26PackedByteArray, Array slice end exclusive, rename subarray to sliceNathan Franke
2021-11-25Merge pull request #55227 from ator-dev/fix-code-foldingRémi Verschelde
2021-11-24Fix code folding when end of block is unindented delimiterator-dev
2021-11-24Merge pull request #52456 from kleonc/image-fill-rectRémi Verschelde
2021-11-23Rename `remove()` to `remove_at()` when removing by indexLightning_A
2021-11-23Add Image::fill_rect methodkleonc
2021-11-17Fix divide by zero in pck_packerPaulb23
2021-11-12Use "enum class" for input enumsAaron Franke
2021-11-11Rect2: Clarify docs for `has_point` excluding bottom and right bordersRémi Verschelde
Improve tests, as well as documentation for `expand`.
2021-11-11String: Remove `erase` method, bindings can't mutate StringRémi Verschelde
2021-11-07Move and organize tests into subfoldersAaron Franke
2021-11-05Rename AABB `get_area` to `get_volume`Brian Semrau
2021-10-30Modify Dictionary::operator== to do real key/value comparison with recursive ↵Emmanuel Leblond
support (and add unittests)
2021-10-28clang-format: Disable alignment of operands, too unreliableRémi Verschelde
Sets `AlignOperands` to `DontAlign`. `clang-format` developers seem to mostly care about space-based indentation and every other version of clang-format breaks the bad mismatch of tabs and spaces that it seems to use for operand alignment. So it's better without, so that it respects our two-tabs `ContinuationIndentWidth`.
2021-10-28Implement TextServer `strip_diacritics` function.bruvzg
2021-10-25Refactored Node3D rotation modesreduz
* Made the Basis euler orders indexed via enum. * Node3D has a new rotation_order property to choose Euler rotation order. * Node3D has also a rotation_mode property to choose between Euler, Quaternion and Basis Exposing these modes as well as the order makes Godot a lot friendlier for animators, which can choose the best way to interpolate rotations. The new *Basis* mode makes the (exposed) transform property obsolete, so it was removed (can still be accessed by code of course).
2021-10-19Merge pull request #52940 from groud/toast_notificationRémi Verschelde
2021-10-15Swap args of Plane(point, normal) constructormennomax
Now (normal, point)
2021-10-14Implement toast notifications in the editorGilles Roudière
2021-10-06Fix breakpointed_lines out of sync when removing lines abovePaulb23
2021-10-04Added support for uniform arrays in shadersYuri Roubinsky
2021-10-01Fix deleting selection at the first line do not work with backspaceJean-Michel Bernard
2021-10-01Implement TextServer GDExtension interface, remove TextServer GDNative ↵bruvzg
interface.
2021-10-01Merge pull request #52850 from mashumafi/vector-bsearchRémi Verschelde
2021-09-30Implement bsearch for Vector and Packed*Arraymashumafi
2021-09-30Use range iterators for `Map`Lightning_A
2021-09-29Add tests for TranslationsO01eg
2021-09-28Merge pull request #52754 from nekomatata/dynamic-body-modesCamille Mohr-Daurat
Clarify RigidDynamicBody modes
2021-09-25Construct values only when necessary.Anilforextra
2021-09-21Merge pull request #52878 from AnilBK/add-get-centerRémi Verschelde
2021-09-21Add Get Center Method for Rect2/Rect2i and AABB.Anilforextra
2021-09-20Add remaning code edit unit testsPaulb23
2021-09-17Allow indexing of String values in scripting languagesGeorge Marques
2021-09-16Clarify RigidDynamicBody modesPouleyKetchoupp
RigidDynamicBody modes are replaced with several properties to make their usage clearer: -lock_rotation: disable body's rotation (instead of MODE_LOCKED) -freeze: no gravity or forces (instead of MODE_STATIC and MODE_KINEMATIC) -freeze_mode: Static (can be only teleported) or Kinematic (can be animated) Also renamed MODE_DYNAMIC_LOCKED to MODE_DYNAMIC_LINEAR in the physics servers.
2021-09-15Merge pull request #52679 from nekomatata/world-boundary-shapeCamille Mohr-Daurat
Rename WorldMarginShape to WorldBoundaryShape
2021-09-15Fix String::num_real and String test cases when compiling with doublesAaron Franke