From 2cadb78eda2a2e99c505e591bb0975e4ec5ea099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Wo=CC=81jcik?= <3044353+pwojcikdev@users.noreply.github.com> Date: Wed, 24 Jan 2024 23:26:30 +0100 Subject: [PATCH] TESTS --- nano/core_test/object_stream.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/nano/core_test/object_stream.cpp b/nano/core_test/object_stream.cpp index cef329f24c..24820c18f2 100644 --- a/nano/core_test/object_stream.cpp +++ b/nano/core_test/object_stream.cpp @@ -11,6 +11,8 @@ #include #include +#include + TEST (object_stream, primitive) { // Spacing @@ -288,6 +290,24 @@ TEST (object_stream, ostream_adapter) std::cout << "vote: " << vote << std::endl; + // Spacing + std::cout << std::endl; +} + +TEST (object_stream, fmt_adapter) +{ + using namespace nano; + + // Spacing + std::cout << std::endl; + + nano::vote vote{}; + vote.hashes.push_back (nano::test::random_hash ()); + vote.hashes.push_back (nano::test::random_hash ()); + vote.hashes.push_back (nano::test::random_hash ()); + + fmt::print ("vote: {}\n", vote); + // Spacing std::cout << std::endl; } \ No newline at end of file