diff --git a/test/finite_state_filter_test.cpp b/test/finite_state_filter_test.cpp index 7741e79..72a305d 100755 --- a/test/finite_state_filter_test.cpp +++ b/test/finite_state_filter_test.cpp @@ -4,13 +4,18 @@ // See http://www.boost.org/libs/iostreams for documentation. -#include // failure. -#include -#include -#include -#include -#include -#include "../example/finite_state_filter.hpp" +#include +#ifdef BOOST_NO_STD_LOCALE +# error std::locale not supported on this platform +#else + +# include +# include // failure. +# include +# include +# include +# include +# include "../example/finite_state_filter.hpp" using boost::unit_test::test_suite; namespace io = boost::iostreams; @@ -99,30 +104,6 @@ struct unix2dos_fsm > transition_table; }; -struct dictionary_fsm - : io::finite_state_machine -{ - BOOST_IOSTREAMS_FSM(dictionary_fsm) // Define skip and push. - typedef dictionary_fsm self; - typedef std::map dictionary; - - - void append(char c) { current_word_.push_back(c); } - void lookup(char c) - { - - } - - typedef boost::mpl::vector< - row, - row - > transition_table; - - dictionary& dictionary_; - std::vector marks_; - std::string current_word_; -}; - struct uncommenting_fsm : io::finite_state_machine { @@ -202,3 +183,5 @@ test_suite* init_unit_test_suite(int, char* []) test->add(BOOST_TEST_CASE(&finite_state_filter_test)); return test; } + +#endif // #ifdef BOOST_NO_STD_LOCALE //---------------------------------------//