Setting variables of built-in types to null is impossible when adding type hints
Setting variables of built-in types to null is impossible when adding type hints, and sometimes marked as an error otherwise.
So maybe it is worth to think of other ways of indicating "no value yet", or lobby for the nullable? types proposal that's on godot-proposals.
Hi @bitwes I do have a 4.0 branch now that at least allows you to run the whole test suite on the command line. See https://github.com/strank/Gut/tree/4.0 The current end result, running with godot built from this branch https://github.com/strank/godot/tree/gut-porting-to-godot4 (which has two fixes not yet in main Godot), is:
Totals
Scripts: 40
Passing tests 1036
Failing tests 85
Pending: 4
Asserts: 1419/119
Warnings/Errors:
* 21 Errors.
* 122 Warnings.
* 5 Deprecated calls.
1036 passed 85 failed. Tests finished in 108.0s
versus on Godot 3.4.2 (with Gut a few commits behind):
Totals
Scripts: 40
Passing tests 1079
Failing tests 9
Pending: 4
Asserts: 1528/16
Warnings/Errors:
* 17 Errors.
* 6 Warnings.
1079 passed 9 failed. Tests finished in 97.4s
Hope that helps in some way :)
I believe this is not an issue any longer.