Skip to content

Commit

Permalink
append
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeSchulze committed Jan 10, 2022
1 parent 2914ae6 commit ddc1a77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions addons/gdUnit3/src/asserts/GdUnitFileAssertImpl.gd
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func is_script() -> GdUnitFileAssert:
var ret = file.open(current, File.READ)
if ret != OK:
return report_error("Can't acces the file '%s'! Error code %s" % [current, ret])

var script = load(current)
if not script is GDScript:
return report_error("The file '%s' is not a GdScript" % current)
Expand All @@ -82,7 +82,7 @@ func contains_exactly(expected_rows :Array) -> GdUnitFileAssert:
var ret = file.open(current, File.READ)
if ret != OK:
return report_error("Can't acces the file '%s'! Error code %s" % [current, ret])

var script = load(current)
if script is GDScript:
var instance = script.new()
Expand Down
2 changes: 1 addition & 1 deletion addons/gdUnit3/src/core/GdUnitExecutor.gd
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ func clone_test_suite(test_suite :GdUnitTestSuite) -> GdUnitTestSuite:
for property in test_suite.get_property_list():
var property_name = property["name"]
_test_suite.set(property_name, test_suite.get(property_name))

# remove incomplete duplicated childs
for child in _test_suite.get_children():
_test_suite.remove_child(child)
Expand Down

0 comments on commit ddc1a77

Please sign in to comment.