Skip to content

Commit

Permalink
Fix coverage for jb::itch5::book_update
Browse files Browse the repository at this point in the history
  • Loading branch information
coryan committed Oct 29, 2017
1 parent e9a8799 commit 428a8cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jb/itch5/ut_compute_book.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1069,4 +1069,9 @@ BOOST_AUTO_TEST_CASE(compute_book_book_update_operators) {
BOOST_CHECK_NE(
book_update({ts0, stock_t("A"), t::BUY, price4_t(1000), 100}),
book_update({ts0, stock_t("B"), t::BUY, price4_t(1000), 200}));

std::ostringstream os;
os << book_update{ts1, stock_t("A"), t::BUY, price4_t(1000), 300};
BOOST_CHECK_EQUAL(os.str(), "{A,B,0.1000,300}");
}

0 comments on commit 428a8cc

Please sign in to comment.