Skip to content

Commit

Permalink
Create tests/termcolor2/min.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-matsui committed Aug 25, 2019
1 parent 4996a50 commit 9dffc23
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/termcolor2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set(TEST_NAMES
gnu_literals
io
literals
min
string
to_color
)
Expand Down
11 changes: 11 additions & 0 deletions tests/termcolor2/min.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#define BOOST_TEST_MAIN
#include <boost/test/included/unit_test.hpp>
#include <poac/util/termcolor2/min.hpp>

BOOST_AUTO_TEST_CASE( termcolor2_min_test )
{
static_assert(termcolor2::min(1, 2) == 1, "");
static_assert(termcolor2::min(2, 1) == 1, "");
static_assert(termcolor2::min('b', 'z') == 'b', "");
static_assert(termcolor2::min('z', 'b') == 'b', "");
}

0 comments on commit 9dffc23

Please sign in to comment.