1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

Add dozens of new integration tests to the GDScript test suite

This also ignores `.out` files in the file format static checks.
This commit is contained in:
Hugo Locurcio
2021-04-19 20:50:52 +02:00
parent a9b600bac0
commit c0083c0f90
190 changed files with 1788 additions and 17 deletions

View File

@@ -0,0 +1,20 @@
extends Node
func test():
# Create the required node structure.
var hello = Node.new()
hello.name = "Hello"
add_child(hello)
var world = Node.new()
world.name = "World"
hello.add_child(world)
# All the ways of writing node paths below with the `$` operator are valid.
# Results are assigned to variables to avoid warnings.
var __ = $Hello
__ = $"Hello"
__ = $Hello/World
__ = $"Hello/World"
__ = $"Hello/.."
__ = $"Hello/../Hello/World"