Gut icon indicating copy to clipboard operation
Gut copied to clipboard

Setting variables of built-in types to null is impossible when adding type hints

Open bitwes opened this issue 3 years ago • 1 comments

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.

bitwes avatar Jan 15 '22 07:01 bitwes

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 :)

strank avatar Feb 15 '22 15:02 strank

I believe this is not an issue any longer.

bitwes avatar Mar 03 '23 21:03 bitwes