summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/spirit/test/karma/eol.cpp
blob: cf4e18d14e007e91f3f1d8a418187ac1333c2229 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//  Copyright (c) 2001-2011 Hartmut Kaiser
// 
//  Distributed under the Boost Software License, Version 1.0. (See accompanying 
//  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

#include <boost/config/warning_disable.hpp>
#include <boost/detail/lightweight_test.hpp>
#include <boost/spirit/include/karma_auxiliary.hpp>
#include <boost/spirit/include/karma_char.hpp>
#include <boost/spirit/include/karma_generate.hpp>

#include <iostream>
#include "test.hpp"

int
main()
{
    using namespace spirit_test;
    using namespace boost::spirit;
    using namespace boost::spirit::ascii;

    {
        BOOST_TEST((test("\n", eol)));
        BOOST_TEST((test("\n", eol)));
    }

    {
        BOOST_TEST((test_delimited("\n ", eol, space)));
        BOOST_TEST((test_delimited("\n ", eol, space)));
    }

    return boost::report_errors();
}