diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-04-21 14:44:01 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-04-21 14:44:01 +0200 |
| commit | e8ce02d63f096147fc54824f0a45c23e3a3ced25 (patch) | |
| tree | e96658cb58f91c48d345348bb4e08491dac8581b /libs/kstd/tests/src/string.cpp | |
| parent | e3fa6b1adbd7fce3b080d75fd0959949b7d3bef4 (diff) | |
| download | teachos-e8ce02d63f096147fc54824f0a45c23e3a3ced25.tar.xz teachos-e8ce02d63f096147fc54824f0a45c23e3a3ced25.zip | |
libs: prepare for clang-tidy
Diffstat (limited to 'libs/kstd/tests/src/string.cpp')
| -rw-r--r-- | libs/kstd/tests/src/string.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/kstd/tests/src/string.cpp b/libs/kstd/tests/src/string.cpp index 43e9a6b..53d7c9a 100644 --- a/libs/kstd/tests/src/string.cpp +++ b/libs/kstd/tests/src/string.cpp @@ -3,7 +3,7 @@ #include <catch2/catch_test_macros.hpp> #include <algorithm> -#include <ranges> +#include <cstring> #include <string_view> SCENARIO("String initialization and construction", "[string]") @@ -59,7 +59,7 @@ SCENARIO("String initialization and construction", "[string]") THEN("the string is not empty and has the same size as the C-style string") { REQUIRE(!str.empty()); - REQUIRE(str.size() == strlen(c_str)); + REQUIRE(str.size() == std::strlen(c_str)); } THEN("the string contains the same characters as the C-style string") @@ -266,8 +266,8 @@ SCENARIO("String conversion and comparison", "[string]") { GIVEN("An unsigned integer") { - auto value1 = 12345u; - auto value2 = 0u; + constexpr auto value1 = 12345u; + constexpr auto value2 = 0u; WHEN("converting the unsigned integer to a string") { |
