Do not replace starting digit with underscore when making identifier

This commit is contained in:
Alfonso J. Ramos
2023-10-04 07:42:39 -05:00
committed by Theraot
parent f5696c311c
commit 5cd7ca0ccc
2 changed files with 14 additions and 12 deletions

View File

@@ -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");