mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Deduplicate code and use stdlib in string functions
This commit is contained in:
@@ -189,7 +189,7 @@ struct TestUtilities: public TestBase
|
||||
str_replace(test_str, "there", "world");
|
||||
UASSERT(test_str == "Hello world");
|
||||
test_str = "ThisAisAaAtest";
|
||||
str_replace_char(test_str, 'A', ' ');
|
||||
str_replace(test_str, 'A', ' ');
|
||||
UASSERT(test_str == "This is a test");
|
||||
UASSERT(string_allowed("hello", "abcdefghijklmno") == true);
|
||||
UASSERT(string_allowed("123", "abcdefghijklmno") == false);
|
||||
|
Reference in New Issue
Block a user