From c6ca09dc6f0fdf693c2a4445e556861691a81152 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 15 Sep 2021 19:09:34 +0200 Subject: Add more integration tests to the GDScript test suite This also fixes a typo in the `bitwise_float_right_operand.gd` test. --- .../tests/scripts/analyzer/errors/bitwise_float_right_operand.gd | 2 +- .../tests/scripts/analyzer/errors/bitwise_float_right_operand.out | 2 +- .../tests/scripts/analyzer/features/static_method_builtin_type.gd | 2 ++ .../tests/scripts/analyzer/features/static_method_builtin_type.out | 2 ++ 4 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 modules/gdscript/tests/scripts/analyzer/features/static_method_builtin_type.gd create mode 100644 modules/gdscript/tests/scripts/analyzer/features/static_method_builtin_type.out (limited to 'modules/gdscript/tests/scripts/analyzer') diff --git a/modules/gdscript/tests/scripts/analyzer/errors/bitwise_float_right_operand.gd b/modules/gdscript/tests/scripts/analyzer/errors/bitwise_float_right_operand.gd index 4502960105..0a4f647f57 100644 --- a/modules/gdscript/tests/scripts/analyzer/errors/bitwise_float_right_operand.gd +++ b/modules/gdscript/tests/scripts/analyzer/errors/bitwise_float_right_operand.gd @@ -1,3 +1,3 @@ func test(): # Error here. - print(2 << 4.4) + print(2 >> 4.4) diff --git a/modules/gdscript/tests/scripts/analyzer/errors/bitwise_float_right_operand.out b/modules/gdscript/tests/scripts/analyzer/errors/bitwise_float_right_operand.out index 1879fc1adf..1edbf47ec0 100644 --- a/modules/gdscript/tests/scripts/analyzer/errors/bitwise_float_right_operand.out +++ b/modules/gdscript/tests/scripts/analyzer/errors/bitwise_float_right_operand.out @@ -1,2 +1,2 @@ GDTEST_ANALYZER_ERROR -Invalid operands to operator <<, int and float. +Invalid operands to operator >>, int and float. diff --git a/modules/gdscript/tests/scripts/analyzer/features/static_method_builtin_type.gd b/modules/gdscript/tests/scripts/analyzer/features/static_method_builtin_type.gd new file mode 100644 index 0000000000..569f95850f --- /dev/null +++ b/modules/gdscript/tests/scripts/analyzer/features/static_method_builtin_type.gd @@ -0,0 +1,2 @@ +func test(): + print(Color.html_is_valid("00ffff")) diff --git a/modules/gdscript/tests/scripts/analyzer/features/static_method_builtin_type.out b/modules/gdscript/tests/scripts/analyzer/features/static_method_builtin_type.out new file mode 100644 index 0000000000..55482c2b52 --- /dev/null +++ b/modules/gdscript/tests/scripts/analyzer/features/static_method_builtin_type.out @@ -0,0 +1,2 @@ +GDTEST_OK +true -- cgit v1.2.3