Skip to content

Commit c12e9a3

Browse files
committed
test: Style cleanup after opening in 3.4
1 parent 1070a29 commit c12e9a3

File tree

2 files changed

+25
-27
lines changed

2 files changed

+25
-27
lines changed

test/project.godot

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ config_version=4
1010

1111
_global_script_classes=[ ]
1212
_global_script_class_icons={
13-
1413
}
1514

1615
[application]
1716

1817
config/name="Test CI project"
19-

test/script.gd

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
21
extends MainLoop
32

3+
44
func _initialize():
5-
OS.exit_code = 1
6-
var native_script = load("res://gdexample.gdns")
7-
print("Native Script ", native_script)
8-
if native_script == null || !is_instance_valid(native_script):
9-
return
10-
print("Library ", native_script.library)
11-
if native_script.library == null || !is_instance_valid(native_script.library):
12-
return
13-
var ref = native_script.new()
14-
print("Reference ", ref)
15-
if ref == null || !is_instance_valid(ref):
16-
return
17-
print("Reference name ", ref.name)
18-
if ref.name != "SimpleClass":
19-
return
20-
print("Reference value ", ref.value)
21-
if ref.value != 0:
22-
return
23-
print("Call method ", ref.method(1))
24-
if ref.method(1) != 1:
25-
return
26-
OS.exit_code = 0
5+
OS.exit_code = 1
6+
var native_script = load("res://gdexample.gdns")
7+
print("Native Script ", native_script)
8+
if not native_script || !is_instance_valid(native_script):
9+
return
10+
print("Library ", native_script.library)
11+
if not native_script.library || !is_instance_valid(native_script.library):
12+
return
13+
var ref = native_script.new()
14+
print("Reference ", ref)
15+
if not ref || !is_instance_valid(ref):
16+
return
17+
print("Reference name ", ref.name)
18+
if ref.name != "SimpleClass":
19+
return
20+
print("Reference value ", ref.value)
21+
if ref.value != 0:
22+
return
23+
print("Call method ", ref.method(1))
24+
if ref.method(1) != 1:
25+
return
26+
OS.exit_code = 0
2727

28-
func _idle(_delta):
29-
return true
3028

29+
func _idle(_delta):
30+
return true

0 commit comments

Comments
 (0)