diff options
author | jade <lix@jade.fyi> | 2024-03-18 12:01:39 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit@lix> | 2024-03-18 12:01:39 -0600 |
commit | 47a237f7ec594c409a7abbbfe0ff0170a9970183 (patch) | |
tree | b1300e42617d2c728a1688e066ffb6f3a252bfbd /tests/unit | |
parent | 86a1121d16f7eeb594955e39ff4e6fcd69f1b8c5 (diff) | |
parent | 61e21b25576f7f3491f6a837bf59d8b44c6897a0 (diff) |
Merge "Delete hasPrefix and hasSuffix from the codebase" into main
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/libutil/tests.cc | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/unit/libutil/tests.cc b/tests/unit/libutil/tests.cc index f3c1e8248..f55c56548 100644 --- a/tests/unit/libutil/tests.cc +++ b/tests/unit/libutil/tests.cc @@ -235,36 +235,6 @@ namespace nix { } /* ---------------------------------------------------------------------------- - * hasPrefix - * --------------------------------------------------------------------------*/ - - TEST(hasPrefix, emptyStringHasNoPrefix) { - ASSERT_FALSE(hasPrefix("", "foo")); - } - - TEST(hasPrefix, emptyStringIsAlwaysPrefix) { - ASSERT_TRUE(hasPrefix("foo", "")); - ASSERT_TRUE(hasPrefix("jshjkfhsadf", "")); - } - - TEST(hasPrefix, trivialCase) { - ASSERT_TRUE(hasPrefix("foobar", "foo")); - } - - /* ---------------------------------------------------------------------------- - * hasSuffix - * --------------------------------------------------------------------------*/ - - TEST(hasSuffix, emptyStringHasNoSuffix) { - ASSERT_FALSE(hasSuffix("", "foo")); - } - - TEST(hasSuffix, trivialCase) { - ASSERT_TRUE(hasSuffix("foo", "foo")); - ASSERT_TRUE(hasSuffix("foobar", "bar")); - } - - /* ---------------------------------------------------------------------------- * base64Encode * --------------------------------------------------------------------------*/ |