Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve static typing support #588

Merged
merged 1 commit into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion addons/gut/gut.gd
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
extends 'res://addons/gut/gut_to_move.gd'
class_name GutMain

# ##############################################################################
#
Expand Down Expand Up @@ -916,7 +917,7 @@ func _get_files(path, prefix, suffix):
# public
#
#########################
func get_elapsed_time():
func get_elapsed_time() -> float:
var to_return = 0.0
if(_start_time != 0.0):
to_return = Time.get_ticks_msec() - _start_time
Expand Down
2 changes: 1 addition & 1 deletion addons/gut/test.gd
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var _compare = _utils.Comparator.new()
# Need a reference to the instance that is running the tests. This
# is set by the gut class when it runs the tests. This gets you
# access to the asserts in the tests you write.
var gut = null
var gut: GutMain = null

var _disable_strict_datatype_checks = false
# Holds all the text for a test's fail/pass. This is used for testing purposes
Expand Down