Within a match statement, it is now possible to add guards in each
branch:
var a = 0
match a:
0 when false: print("does not run")
0 when true: print("but this does")
This allows more complex logic for deciding which branch to take.
|
||
|---|---|---|
| .. | ||
| scripts | ||
| gdscript_test_runner.cpp | ||
| gdscript_test_runner.h | ||
| gdscript_test_runner_suite.h | ||
| README.md | ||
| test_gdscript.cpp | ||
| test_gdscript.h | ||
| test_lsp.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.