From f9f08a56fa08addbd96ab90430735e4e044a3af1 Mon Sep 17 00:00:00 2001 From: Neil MacIntosh Date: Tue, 9 Aug 2016 18:07:17 -0700 Subject: Added test for Issue #305. --- tests/string_span_tests.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/string_span_tests.cpp') diff --git a/tests/string_span_tests.cpp b/tests/string_span_tests.cpp index 876886a..ca60e4b 100644 --- a/tests/string_span_tests.cpp +++ b/tests/string_span_tests.cpp @@ -18,6 +18,7 @@ #include #include #include +#include using namespace std; using namespace gsl; @@ -942,7 +943,13 @@ SUITE(string_span_tests) CHECK(*(str + 3) == L'\0'); } } + } + TEST(Issue305) + { + std::map, int> foo = { { "foo", 0 },{ "bar", 1 } }; + CHECK(foo["foo"] == 0); + CHECK(foo["bar"] == 1); } } -- cgit v1.2.3