aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/vcpkg-test/stringview.cpp
diff options
context:
space:
mode:
authornicole mazzuca <mazzucan@outlook.com>2020-07-06 16:45:34 -0700
committerGitHub <noreply@github.com>2020-07-06 16:45:34 -0700
commit6a41626eaf33d2f3392e06d98a94c630bfc30977 (patch)
treefb92f59f27b99c56ed48f6cae649468b4407a073 /toolsrc/src/vcpkg-test/stringview.cpp
parentae4968fad40e8c14541dae89c481ec32c0500426 (diff)
downloadvcpkg-6a41626eaf33d2f3392e06d98a94c630bfc30977.tar.gz
vcpkg-6a41626eaf33d2f3392e06d98a94c630bfc30977.zip
[vcpkg] Format the C++ in CI (#11655)
* [vcpkg] Format the C++ in the CI * format the C++ * CR
Diffstat (limited to 'toolsrc/src/vcpkg-test/stringview.cpp')
-rw-r--r--toolsrc/src/vcpkg-test/stringview.cpp22
1 files changed, 12 insertions, 10 deletions
diff --git a/toolsrc/src/vcpkg-test/stringview.cpp b/toolsrc/src/vcpkg-test/stringview.cpp
index 4df8e6be5..953a7de99 100644
--- a/toolsrc/src/vcpkg-test/stringview.cpp
+++ b/toolsrc/src/vcpkg-test/stringview.cpp
@@ -2,16 +2,18 @@
#include <vcpkg/base/stringview.h>
-template <std::size_t N>
-static vcpkg::StringView sv(const char (&cstr)[N]) {
- return cstr;
+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"));
+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"));
}