summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/Jamfile.jam1
-rw-r--r--test/test-static-stream_support.cpp11
2 files changed, 12 insertions, 0 deletions
diff --git a/test/Jamfile.jam b/test/Jamfile.jam
index 32c522b..6a83f9c 100644
--- a/test/Jamfile.jam
+++ b/test/Jamfile.jam
@@ -33,3 +33,4 @@ run test-enumDetails.cpp ;
run test-render.cpp ;
run test-glContextBhvr.cpp ;
compile test-static-enumDetails.cpp ;
+compile test-static-stream_support.cpp ;
diff --git a/test/test-static-stream_support.cpp b/test/test-static-stream_support.cpp
new file mode 100644
index 0000000..367d5a2
--- /dev/null
+++ b/test/test-static-stream_support.cpp
@@ -0,0 +1,11 @@
+#include "stream_support.hpp"
+
+#include <array>
+#include <vector>
+
+static_assert(spanable<std::vector<int>>);
+static_assert(spanable<std::vector<char>>);
+static_assert(spanable<std::array<int, 1>>);
+static_assert(spanable<std::array<char, 1>>);
+static_assert(!spanable<std::string>);
+static_assert(!spanable<std::string_view>);