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:
parent
a9b600bac0
commit
c0083c0f90
190 changed files with 1788 additions and 17 deletions
16
modules/gdscript/tests/scripts/analyzer/features/as.gd
Normal file
16
modules/gdscript/tests/scripts/analyzer/features/as.gd
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
func test():
|
||||
var some_bool = 5 as bool
|
||||
var some_int = 5 as int
|
||||
var some_float = 5 as float
|
||||
print(typeof(some_bool))
|
||||
print(typeof(some_int))
|
||||
print(typeof(some_float))
|
||||
|
||||
print()
|
||||
|
||||
var some_bool_typed := 5 as bool
|
||||
var some_int_typed := 5 as int
|
||||
var some_float_typed := 5 as float
|
||||
print(typeof(some_bool_typed))
|
||||
print(typeof(some_int_typed))
|
||||
print(typeof(some_float_typed))
|
||||
8
modules/gdscript/tests/scripts/analyzer/features/as.out
Normal file
8
modules/gdscript/tests/scripts/analyzer/features/as.out
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
GDTEST_OK
|
||||
1
|
||||
2
|
||||
3
|
||||
|
||||
1
|
||||
2
|
||||
3
|
||||
Loading…
Add table
Add a link
Reference in a new issue