diff options
author | Max Hilbrunner <mhilbrunner@users.noreply.github.com> | 2021-08-27 21:05:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-27 21:05:47 +0200 |
commit | 4e67e9bca63b6539820a4e09d58ffc192146da19 (patch) | |
tree | 3cb66666c2d69e08e5c117c5ffa0b274b8693cb9 /modules | |
parent | 701195937de2600a8c32a823ebffcf657ec7b0dd (diff) | |
parent | 4fae7ae9dc8e115c13c70c2762715cf3e4623a06 (diff) |
Merge pull request #52090 from balloonpopper/bug52060
Correct null and boolean values being capitalised by the str command
Diffstat (limited to 'modules')
4 files changed, 13 insertions, 2 deletions
diff --git a/modules/gdscript/tests/scripts/analyzer/features/call_self_get_name.out b/modules/gdscript/tests/scripts/analyzer/features/call_self_get_name.out index dc4348d9c3..2c8cc9c03f 100644 --- a/modules/gdscript/tests/scripts/analyzer/features/call_self_get_name.out +++ b/modules/gdscript/tests/scripts/analyzer/features/call_self_get_name.out @@ -1,3 +1,3 @@ GDTEST_OK Name is equal -True +true diff --git a/modules/gdscript/tests/scripts/analyzer/features/call_static_builtin_function.out b/modules/gdscript/tests/scripts/analyzer/features/call_static_builtin_function.out index 75b002aa62..ad6beeb646 100644 --- a/modules/gdscript/tests/scripts/analyzer/features/call_static_builtin_function.out +++ b/modules/gdscript/tests/scripts/analyzer/features/call_static_builtin_function.out @@ -1,3 +1,3 @@ GDTEST_OK -True +true OK diff --git a/modules/gdscript/tests/scripts/parser/features/str_preserves_case.gd b/modules/gdscript/tests/scripts/parser/features/str_preserves_case.gd new file mode 100644 index 0000000000..ad1694de81 --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/features/str_preserves_case.gd @@ -0,0 +1,7 @@ +func test(): + var null_var = null + var true_var:bool = true + var false_var:bool = false + print(str(null_var)) + print(str(true_var)) + print(str(false_var)) diff --git a/modules/gdscript/tests/scripts/parser/features/str_preserves_case.out b/modules/gdscript/tests/scripts/parser/features/str_preserves_case.out new file mode 100644 index 0000000000..abba38e87c --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/features/str_preserves_case.out @@ -0,0 +1,4 @@ +GDTEST_OK +null +true +false |