diff options
author | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-03-24 17:54:20 +0100 |
---|---|---|
committer | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-03-24 17:54:57 +0100 |
commit | bb6305d1c40b8d75e1d58bc57811479d1d2986c9 (patch) | |
tree | f6098ec87cfd77b346bd6a64d445f846f7e55ca0 /tests/core | |
parent | 99ff024f78f65ba0bc54fb409cfeca43ba2008fe (diff) | |
download | redot-engine-bb6305d1c40b8d75e1d58bc57811479d1d2986c9.tar.gz |
[Core] Fix incorrect file sort method
Diffstat (limited to 'tests/core')
-rw-r--r-- | tests/core/string/test_string.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/core/string/test_string.h b/tests/core/string/test_string.h index 027dcac92d..64f03e5879 100644 --- a/tests/core/string/test_string.h +++ b/tests/core/string/test_string.h @@ -338,10 +338,12 @@ TEST_CASE("[String] Natural compare function test") { TEST_CASE("[String] File compare function test") { String a = "_img2.png"; + String b = "img2.png"; CHECK(a.nocasecmp_to("img10.png") > 0); CHECK_MESSAGE(a.filenocasecmp_to("img10.png") < 0, "Should sort before letters."); CHECK_MESSAGE(a.filenocasecmp_to(".img10.png") > 0, "Should sort after period."); + CHECK(b.filenocasecmp_to("img3.png") < 0); } TEST_CASE("[String] hex_encode_buffer") { |