aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/vcpkg-test/stringview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'toolsrc/src/vcpkg-test/stringview.cpp')
-rw-r--r--toolsrc/src/vcpkg-test/stringview.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/toolsrc/src/vcpkg-test/stringview.cpp b/toolsrc/src/vcpkg-test/stringview.cpp
deleted file mode 100644
index 953a7de99..000000000
--- a/toolsrc/src/vcpkg-test/stringview.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-#include <catch2/catch.hpp>
-
-#include <vcpkg/base/stringview.h>
-
-template<std::size_t N>
-static vcpkg::StringView sv(const char (&cstr)[N])
-{
- return cstr;
-}
-
-TEST_CASE ("string view operator==", "[stringview]")
-{
- // these are due to a bug in operator==
- // see commit 782723959399a1a0725ac49
- REQUIRE(sv("hey") != sv("heys"));
- REQUIRE(sv("heys") != sv("hey"));
- REQUIRE(sv("hey") == sv("hey"));
- REQUIRE(sv("hey") != sv("hex"));
-}