test.cpp
@@ -1,8 +1,9 @@ #include "bom.hpp" #include "book.hpp" #include "json.hpp" #include "protocol.hpp" #include "bom.hpp" #include <chrono> #include <iostream> #include <unistd.h> #include <unordered_map> @@ -19,4 +20,10 @@ bom::initialise(); bom::updateBom(bs); bom::destroy(); protocol::catchUp(bs); std::cout << bs.size() << std::endl; for (auto& i : bs) { std::cout << i.first << ", " << i.second.bomPrice << std::endl; i.second.printBook(); } }