Replace String comparisons with "", String() to is_empty()
Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
This commit is contained in:
parent
31ded7e126
commit
49403cbfa0
226 changed files with 1051 additions and 1034 deletions
|
|
@ -3235,7 +3235,7 @@ TEST_CASE("[SceneTree][CodeEdit] Backspace delete") {
|
|||
code_edit->insert_text_at_caret("line 1\nline 2\nline 3");
|
||||
code_edit->select_all();
|
||||
code_edit->backspace();
|
||||
CHECK(code_edit->get_text() == "");
|
||||
CHECK(code_edit->get_text().is_empty());
|
||||
|
||||
/* Backspace at the beginning without selection has no effect. */
|
||||
code_edit->set_text("");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue