Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/GSL.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Maples [MSFT] <49793787+JordanMaples@users.noreply.github.com>2021-05-21 04:18:08 +0300
committerGitHub <noreply@github.com>2021-05-21 04:18:08 +0300
commitb26f6d5ec7b043f9d459c1dfdd6da4d930d4e9b4 (patch)
tree5d55449173cdfb33ff1c3f51edef81910a1ad51b /tests/byte_tests.cpp
parentc1cbb41b428f15e53454682a45f03ea31f1da0a7 (diff)
gsl::at behavior change regarding gsl::span (#985)
* move span specialization of 'at' to <gsl/span> and update the parameter to be taken by reference * undid previous changes and acted upon decisions made in maintainer sync. Fixed tests failing in /kernel mode * ran clang-format on the include folder * ran clang-format on the test folder Co-authored-by: Jordan Maples <jordan.maples@microsoft.com>
Diffstat (limited to 'tests/byte_tests.cpp')
-rw-r--r--tests/byte_tests.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/byte_tests.cpp b/tests/byte_tests.cpp
index 2a86cac..4432fc9 100644
--- a/tests/byte_tests.cpp
+++ b/tests/byte_tests.cpp
@@ -37,7 +37,9 @@ TEST(byte_tests, construction)
EXPECT_TRUE(static_cast<unsigned char>(b) == 4);
}
+ // clang-format off
GSL_SUPPRESS(es.49)
+ // clang-format on
{
const byte b = byte(12);
EXPECT_TRUE(static_cast<unsigned char>(b) == 12);
@@ -55,7 +57,7 @@ TEST(byte_tests, construction)
#if defined(__cplusplus) && (__cplusplus >= 201703L)
{
- const byte b { 14 };
+ const byte b{14};
EXPECT_TRUE(static_cast<unsigned char>(b) == 14);
}
#endif
@@ -122,7 +124,7 @@ TEST(byte_tests, aliasing)
EXPECT_TRUE(res == i);
}
-}
+} // namespace
#ifdef CONFIRM_COMPILATION_ERRORS
copy(src_span_static, dst_span_static);