Skip to content

Commit fb13d1a

Browse files
committed
Minor GDScript style
1 parent 5d20ef3 commit fb13d1a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

itest/godot/ManualFfiTests.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ func test_missing_init():
99

1010
var expr = Expression.new()
1111
var error = expr.parse("WithoutInit.new()")
12-
if !assert_eq(error, OK, "Failed to parse dynamic expression"):
12+
if not assert_eq(error, OK, "Failed to parse dynamic expression"):
1313
return
1414

1515
var instance = expr.execute()
16-
if !assert_that(!expr.has_execute_failed(), "Failed to evaluate dynamic expression"):
16+
if not assert_that(!expr.has_execute_failed(), "Failed to evaluate dynamic expression"):
1717
return
1818

1919
print("[GD] WithoutInit is: ", instance)

itest/godot/TestRunner.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class GDScriptExecutableTestCase extends GDScriptTestCase:
9292
# This is a no-op if the suite doesn't have this property.
9393
suite.set("_assertion_failed", false)
9494
var result = suite.call(method_name)
95-
var ok: bool = (result == true || result == null) && !suite.get("_assertion_failed")
95+
var ok: bool = (result == true or result == null) and not suite.get("_assertion_failed")
9696
return ok
9797

9898
# Hardcoded test case used for special cases where the standard testing API is not sufficient.

0 commit comments

Comments
 (0)