2
0
mirror of https://github.com/boostorg/hana.git synced 2026-02-15 13:12:12 +00:00

Reorganize the unit tests and increase the overall coverage.

This commit is contained in:
Louis Dionne
2014-10-28 19:54:30 -04:00
parent 217e1d2b46
commit 647ad436b0
303 changed files with 10251 additions and 11282 deletions

View File

@@ -1,21 +0,0 @@
/*
@copyright Louis Dionne 2014
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#include <boost/hana/string.hpp>
#include <boost/hana/detail/assert.hpp>
using namespace boost::hana;
int main() {
auto s1 = BOOST_HANA_STRING("abcd");
auto s2 = string<'a', 'b', 'c', 'd'>;
BOOST_HANA_CONSTEXPR_ASSERT(s1.get()[0] == s2.get()[0]);
BOOST_HANA_CONSTEXPR_ASSERT(s1.get()[1] == s2.get()[1]);
BOOST_HANA_CONSTEXPR_ASSERT(s1.get()[2] == s2.get()[2]);
BOOST_HANA_CONSTEXPR_ASSERT(s1.get()[3] == s2.get()[3]);
}