diff options
| author | Lukas Oesch <lukasoesch20@gmail.com> | 2026-05-02 15:36:19 +0200 |
|---|---|---|
| committer | Lukas Oesch <lukasoesch20@gmail.com> | 2026-05-05 14:38:52 +0200 |
| commit | 40fbefab704695b905e3de3e80668447cc64b20e (patch) | |
| tree | 89687d757577735d86d701425cc00416aad9a7f6 /libs/kstd | |
| parent | e74e56559ae99fd14715371ebceb2545f68008de (diff) | |
| download | kernel-40fbefab704695b905e3de3e80668447cc64b20e.tar.xz kernel-40fbefab704695b905e3de3e80668447cc64b20e.zip | |
refactoring and extend tests
Diffstat (limited to 'libs/kstd')
| -rw-r--r-- | libs/kstd/kstd/string.test.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/kstd/kstd/string.test.cpp b/libs/kstd/kstd/string.test.cpp index 53d7c9a..9755676 100644 --- a/libs/kstd/kstd/string.test.cpp +++ b/libs/kstd/kstd/string.test.cpp @@ -37,7 +37,7 @@ SCENARIO("String initialization and construction", "[string]") THEN("the string is not empty and has the same size as the view") { - REQUIRE(!str.empty()); + REQUIRE_FALSE(str.empty()); REQUIRE(str.size() == view.size()); } @@ -58,7 +58,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_FALSE(str.empty()); REQUIRE(str.size() == std::strlen(c_str)); } @@ -79,7 +79,7 @@ SCENARIO("String initialization and construction", "[string]") THEN("the string is not empty and has size 1") { - REQUIRE(!str.empty()); + REQUIRE_FALSE(str.empty()); REQUIRE(str.size() == 1); } @@ -294,7 +294,7 @@ SCENARIO("String conversion and comparison", "[string]") THEN("the strings are not unequal") { - REQUIRE(!(str1 != str2)); + REQUIRE_FALSE(str1 != str2); } } @@ -311,8 +311,8 @@ SCENARIO("String conversion and comparison", "[string]") THEN("the string and the string view are not unequal") { - REQUIRE(!(str != view)); - REQUIRE(!(view != str)); + REQUIRE_FALSE(str != view); + REQUIRE_FALSE(view != str); } } } |
