diff --git a/model_json_exporter/test/json_generated_test.cpp b/model_json_exporter/test/json_generated_test.cpp index 44811eb..fed41af 100644 --- a/model_json_exporter/test/json_generated_test.cpp +++ b/model_json_exporter/test/json_generated_test.cpp @@ -26,6 +26,7 @@ #define BOOST_TEST_DYN_LINK #include +#include #include #include #include @@ -96,6 +97,8 @@ BOOST_AUTO_TEST_CASE( a_simple_model_test ){ std::string obtained_json = test_output.str(); obtained_json.erase(std::remove(obtained_json.begin(), obtained_json.end(), '\n'), obtained_json.end()); obtained_json.erase(std::remove(obtained_json.begin(), obtained_json.end(), ' '), obtained_json.end()); + boost::replace_all(obtained_json, "::__1", ""); + std::string expected_json = "{\"id\":\"cadmium::modeling::coupled_model,std::tuple,cadmium::modeling::models_tuple,std::tuple<>,std::tuple::out,coupled_out_port>>,std::tuple<>>\",\"type\":\"coupled\",\"eoc\":[{\"to_port\":\"coupled_out_port\",\"from_model\":\"test_generator\",\"from_port\":\"cadmium::basic_models::generator_defs::out\"}],\"ports\":{\"out\":[{\"name\":\"coupled_out_port\",\"message_type\":\"test_tick\",\"port_kind\":\"out\"}]},\"models\":[{\"id\":\"test_generator\",\"type\":\"atomic\",\"ports\":{\"out\":[{\"name\":\"cadmium::basic_models::generator_defs::out\",\"message_type\":\"test_tick\",\"port_kind\":\"out\"}]}}]}"; BOOST_CHECK_EQUAL(expected_json, obtained_json); }