Skip to content

Commit

Permalink
TESTS
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Jan 24, 2024
1 parent 685801a commit 2cadb78
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions nano/core_test/object_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include <limits>
#include <thread>

#include <fmt/printf.h>

TEST (object_stream, primitive)
{
// Spacing
Expand Down Expand Up @@ -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;
}

0 comments on commit 2cadb78

Please sign in to comment.