]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | // Copyright Abel Sinkovics (abel@sinkovics.hu) 2021. |
2 | // Distributed under the Boost Software License, Version 1.0. | |
3 | // (See accompanying file LICENSE_1_0.txt or copy at | |
4 | // http://www.boost.org/LICENSE_1_0.txt) | |
5 | ||
6 | #define BOOST_TEST_MODULE string_value | |
7 | ||
8 | #include <boost/metaparse/string_value.hpp> | |
9 | #include <boost/metaparse/string.hpp> | |
10 | ||
11 | #include <boost/test/unit_test.hpp> | |
12 | ||
13 | #if BOOST_METAPARSE_STD >= 2011 | |
14 | #include <type_traits> | |
15 | #endif | |
16 | ||
17 | BOOST_AUTO_TEST_CASE(test_string_value) | |
18 | { | |
19 | #if BOOST_METAPARSE_STD >= 2011 | |
20 | auto foo = BOOST_METAPARSE_STRING_VALUE("foo"); | |
21 | ||
22 | BOOST_MPL_ASSERT(( | |
23 | std::is_same<BOOST_METAPARSE_STRING("foo"), decltype(foo)> | |
24 | )); | |
25 | #endif | |
26 | } | |
27 |