mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
1ebcb58e69
To guarantee polymorphism, a method signature must be compatible with the parent. This checks if: 1. Return type is the same. 2. The subclass method takes at least the same amount of parameters. 3. The matching parameters have the same type. 4. If the subclass takes more parameters, all of the extra ones have a default value. 5. If the superclass has default values, so must have the subclass. There's a few test cases to ensure this holds up. |
||
---|---|---|
.. | ||
scripts | ||
gdscript_test_runner_suite.h | ||
gdscript_test_runner.cpp | ||
gdscript_test_runner.h | ||
README.md | ||
test_gdscript.cpp | ||
test_gdscript.h |
GDScript integration tests
The scripts/
folder contains integration tests in the form of GDScript files
and output files.
See the Integration tests for GDScript documentation for information about creating and running GDScript integration tests.