Patch correctif TP2

This commit is contained in:
2025-10-20 14:07:37 +02:00
parent e2d1a2da34
commit 06b1f2df82
23 changed files with 1610 additions and 455 deletions

View File

@@ -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);
}
}
}