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
path: root/tests
diff options
context:
space:
mode:
authorJordan Maples <jomaples@microsoft.com>2020-04-15 02:57:12 +0300
committerJordan Maples <jomaples@microsoft.com>2020-04-15 02:57:12 +0300
commit9cb376c0508475c8aa8be015ef266558232f9583 (patch)
treee669d6b074721dbbc830294343e3a29b799e2655 /tests
parent7341c5d1b587f49043250991679c16deb6a4fdd0 (diff)
adding back free functions for [c|cr][begin|end]
Diffstat (limited to 'tests')
-rw-r--r--tests/span_ext_tests.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/span_ext_tests.cpp b/tests/span_ext_tests.cpp
index 74aba3e..d413e03 100644
--- a/tests/span_ext_tests.cpp
+++ b/tests/span_ext_tests.cpp
@@ -208,14 +208,26 @@ TEST(span_ext_test, make_span_from_array_constructor)
EXPECT_TRUE((std::is_same<decltype(s.begin()), decltype(begin(s))>::value));
EXPECT_TRUE((std::is_same<decltype(s.end()), decltype(end(s))>::value));
+ EXPECT_TRUE((std::is_same<decltype(std::cbegin(s)), decltype(cbegin(s))>::value));
+ EXPECT_TRUE((std::is_same<decltype(std::cend(s)), decltype(cend(s))>::value));
+
EXPECT_TRUE((std::is_same<decltype(s.rbegin()), decltype(rbegin(s))>::value));
EXPECT_TRUE((std::is_same<decltype(s.rend()), decltype(rend(s))>::value));
+ EXPECT_TRUE((std::is_same<decltype(std::crbegin(s)), decltype(crbegin(s))>::value));
+ EXPECT_TRUE((std::is_same<decltype(std::crend(s)), decltype(crend(s))>::value));
+
EXPECT_TRUE(s.begin() == begin(s));
EXPECT_TRUE(s.end() == end(s));
EXPECT_TRUE(s.rbegin() == rbegin(s));
EXPECT_TRUE(s.rend() == rend(s));
+
+ EXPECT_TRUE(s.begin() == cbegin(s));
+ EXPECT_TRUE(s.end() == cend(s));
+
+ EXPECT_TRUE(s.rbegin() == crbegin(s));
+ EXPECT_TRUE(s.rend() == crend(s));
}
TEST(span_ext_test, ssize_free_function)