Patch correctif TP2
This commit is contained in:
@@ -34,7 +34,8 @@ public:
|
||||
|
||||
BOOST_AUTO_TEST_CASE(TestCase_JSONPool)
|
||||
{
|
||||
std::ifstream input("../data/factory.json"); // Fix : j'ai retiré un ../ pour que le test passe sous Codeblocks
|
||||
//std::ifstream input("../../data/factory_with_sinks.json");
|
||||
std::ifstream input("../../data/factory_with_sinks.json");
|
||||
|
||||
if (input) {
|
||||
std::string str((std::istreambuf_iterator<char>(input)), std::istreambuf_iterator<char>());
|
||||
@@ -66,12 +67,11 @@ BOOST_AUTO_TEST_CASE(TestCase_JSONPool)
|
||||
|
||||
output(context.begin(), context.end(), {context.begin(), 1});
|
||||
|
||||
std::cout << artis::factory::Trace::trace().elements().filter_level_type(artis::common::LevelType::USER).to_string()
|
||||
std::cout << artis::factory::Trace::trace().elements().filter_level_type(artis::common::LevelType::USER).filter_model_name("M_3_0").to_string()
|
||||
<< std::endl;
|
||||
|
||||
BOOST_CHECK(true);
|
||||
} else {
|
||||
std::cout << "ERREUR : FICHIER JSON NON TROUVé" << std::endl;
|
||||
BOOST_CHECK(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user