From d2cfd3eeeb8b6af3b7ccda01e6c1ac581a2df398 Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Thu, 13 Jan 2022 06:54:09 +0000
Subject: [PATCH] Added time parsing

---
 test.cpp |   19 +++++++++++++++----
 1 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/test.cpp b/test.cpp
index 68371ea..1617c70 100644
--- a/test.cpp
+++ b/test.cpp
@@ -1,18 +1,29 @@
+#include "bom.hpp"
 #include "book.hpp"
 #include "json.hpp"
 #include "protocol.hpp"
 #include <chrono>
+#include <iostream>
 #include <unistd.h>
 #include <unordered_map>
 
 int main(void)
 {
 	// book::Book b = book::testBook(10, true);
-    auto bs = protocol::recoverBook();
-    protocol::catchUp(bs);
+	auto bs = protocol::recoverBook();
+	//     protocol::catchUp(bs);
+	// 	std::cout << bs.size() << std::endl;
+	// 	for (auto i : bs) {
+	// 		std::cout << i.first << std::endl;
+	// 		i.second.printBook();
+	// 	}
+	bom::initialise();
+	bom::updateBom(bs);
+	bom::destroy();
+	protocol::catchUp(bs);
 	std::cout << bs.size() << std::endl;
-	for (auto i : bs) {
-		std::cout << i.first << std::endl;
+	for (auto& i : bs) {
+		std::cout << i.first << ", " << i.second.expiry.count() << ", " << i.second.bomPrice << std::endl;
 		i.second.printBook();
 	}
 }

--
Gitblit v1.9.3