forked from boostorg/io
Add pedantic and warnings-as-errors to tests
This commit is contained in:
@@ -5,56 +5,57 @@ Copyright 2019 Glen Joseph Fernandes
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
#include <boost/core/lightweight_test_trait.hpp>
|
||||
#include <boost/io/ostream_joiner.hpp>
|
||||
#include <boost/core/is_same.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
#include <sstream>
|
||||
|
||||
void test_char_type()
|
||||
{
|
||||
BOOST_TEST_TRAIT_SAME(char,
|
||||
boost::io::ostream_joiner<const char*>::char_type);
|
||||
BOOST_TEST((boost::core::is_same<char,
|
||||
boost::io::ostream_joiner<const char*>::char_type>::value));
|
||||
}
|
||||
|
||||
void test_traits_type()
|
||||
{
|
||||
BOOST_TEST_TRAIT_SAME(std::char_traits<char>,
|
||||
boost::io::ostream_joiner<const char*>::traits_type);
|
||||
BOOST_TEST((boost::core::is_same<std::char_traits<char>,
|
||||
boost::io::ostream_joiner<const char*>::traits_type>::value));
|
||||
}
|
||||
|
||||
void test_ostream_type()
|
||||
{
|
||||
BOOST_TEST_TRAIT_SAME(std::ostream,
|
||||
boost::io::ostream_joiner<const char*>::ostream_type);
|
||||
BOOST_TEST((boost::core::is_same<std::ostream,
|
||||
boost::io::ostream_joiner<const char*>::ostream_type>::value));
|
||||
}
|
||||
|
||||
void test_iterator_category()
|
||||
{
|
||||
BOOST_TEST_TRAIT_SAME(std::output_iterator_tag,
|
||||
boost::io::ostream_joiner<const char*>::iterator_category);
|
||||
BOOST_TEST((boost::core::is_same<std::output_iterator_tag,
|
||||
boost::io::ostream_joiner<const char*>::iterator_category>::value));
|
||||
}
|
||||
|
||||
void test_value_type()
|
||||
{
|
||||
BOOST_TEST_TRAIT_SAME(void,
|
||||
boost::io::ostream_joiner<const char*>::value_type);
|
||||
BOOST_TEST((boost::core::is_same<void,
|
||||
boost::io::ostream_joiner<const char*>::value_type>::value));
|
||||
}
|
||||
|
||||
void test_difference_type()
|
||||
{
|
||||
BOOST_TEST_TRAIT_SAME(void,
|
||||
boost::io::ostream_joiner<const char*>::difference_type);
|
||||
BOOST_TEST((boost::core::is_same<void,
|
||||
boost::io::ostream_joiner<const char*>::difference_type>::value));
|
||||
}
|
||||
|
||||
void test_pointer()
|
||||
{
|
||||
BOOST_TEST_TRAIT_SAME(void,
|
||||
boost::io::ostream_joiner<const char*>::pointer);
|
||||
BOOST_TEST((boost::core::is_same<void,
|
||||
boost::io::ostream_joiner<const char*>::pointer>::value));
|
||||
}
|
||||
|
||||
void test_reference()
|
||||
{
|
||||
BOOST_TEST_TRAIT_SAME(void,
|
||||
boost::io::ostream_joiner<const char*>::reference);
|
||||
BOOST_TEST((boost::core::is_same<void,
|
||||
boost::io::ostream_joiner<const char*>::reference>::value));
|
||||
}
|
||||
|
||||
void test_construct()
|
||||
|
||||
Reference in New Issue
Block a user