From e4b4503b81eec90a63e0dbce73b542bfbf401244 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Sat, 28 Sep 2019 12:07:53 +0900 Subject: [PATCH] style: add comment to test::operator<< --- tests/test_get_or.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_get_or.cpp b/tests/test_get_or.cpp index 0c12a07..7edf7d0 100644 --- a/tests/test_get_or.cpp +++ b/tests/test_get_or.cpp @@ -25,6 +25,11 @@ using test_value_types = std::tuple< namespace test { +// to compare result values in BOOST_TEST(). +// +// BOOST_TEST outputs the expected and actual values. Thus it includes the +// output stream operator inside. To compile it, we need operator< std::basic_ostream& operator<<(std::basic_ostream& os, const std::vector& v)