]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
test: Simplify util::read_file_part test again
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 22 May 2023 19:35:30 +0000 (21:35 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 22 May 2023 19:35:30 +0000 (21:35 +0200)
unittest/test_util_file.cpp

index 4695750c2e15ab7246623f4bea11b0b27e5c6145..77e5c0bec8f0079b1413ee6b2c77c39480c1dcaf 100644 (file)
@@ -147,9 +147,7 @@ TEST_CASE("util::read_file_part")
 
   SUBCASE("util::Bytes")
   {
-    auto lhs = util::read_file_part<util::Bytes>("test", 0, 0);
-    auto rhs = util::to_span("");
-    CHECK(lhs == rhs);
+    CHECK(util::read_file_part<util::Bytes>("test", 0, 0) == util::to_span(""));
     CHECK(util::read_file_part<util::Bytes>("test", 0, 6)
           == util::to_span("banana"));
     CHECK(util::read_file_part<util::Bytes>("test", 0, 1000)