From 4fae7ae9dc8e115c13c70c2762715cf3e4623a06 Mon Sep 17 00:00:00 2001 From: Balloonpopper Date: Wed, 25 Aug 2021 16:37:40 +1000 Subject: Correct null and boolean values being capitalised by the str command --- .../gdscript/tests/scripts/parser/features/str_preserves_case.gd | 7 +++++++ .../gdscript/tests/scripts/parser/features/str_preserves_case.out | 4 ++++ 2 files changed, 11 insertions(+) create mode 100644 modules/gdscript/tests/scripts/parser/features/str_preserves_case.gd create mode 100644 modules/gdscript/tests/scripts/parser/features/str_preserves_case.out (limited to 'modules/gdscript/tests/scripts/parser') 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 -- cgit v1.2.3