diff options
author | Alfonso J. Ramos <theraot@gmail.com> | 2023-10-04 07:42:39 -0500 |
---|---|---|
committer | Theraot <Theraot@gmail.com> | 2023-10-04 08:05:04 -0500 |
commit | 5cd7ca0ccc4f67d41a148c416c78c77074cfc8b4 (patch) | |
tree | c8e4007dccf4f907be231d281ee6e6253d14b340 /tests | |
parent | f5696c311cdb09e0a34fa4ba7ef5d2524c515b89 (diff) | |
download | redot-engine-5cd7ca0ccc4f67d41a148c416c78c77074cfc8b4.tar.gz |
Do not replace starting digit with underscore when making identifier
Diffstat (limited to 'tests')
-rw-r--r-- | tests/core/string/test_string.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/core/string/test_string.h b/tests/core/string/test_string.h index c10ad6e13d..02349aedc0 100644 --- a/tests/core/string/test_string.h +++ b/tests/core/string/test_string.h @@ -1716,7 +1716,7 @@ TEST_CASE("[String] validate_identifier") { CHECK(empty_string.validate_identifier() == "_"); String numeric_only = "12345"; - CHECK(numeric_only.validate_identifier() == "_2345"); + CHECK(numeric_only.validate_identifier() == "_12345"); String name_with_spaces = "Name with spaces"; CHECK(name_with_spaces.validate_identifier() == "Name_with_spaces"); |