2
0
mirror of https://github.com/boostorg/test.git synced 2026-02-12 12:32:09 +00:00

correct run rules in examples

make example 2 more pronounced
removed unnecessary ; in example 4 and 5
new alias test in test directory
msvc 6.5 should use static lib
test case for new tools added

[SVN r40271]
This commit is contained in:
Gennadiy Rozental
2007-10-21 20:59:15 +00:00
parent 091e85e0c2
commit 39bfbe557d
9 changed files with 75 additions and 31 deletions

View File

@@ -364,6 +364,33 @@ TEST_CASE( test_BOOST_CHECK_EQUAL )
//____________________________________________________________________________//
TEST_CASE( test_BOOST_CHECK_LOGICAL_EXPR )
{
int i=1;
int j=2;
BOOST_CHECK_NE( i, j );
BOOST_CHECK_NE( ++i, j );
BOOST_CHECK_LT( i, j );
BOOST_CHECK_GT( i, j );
BOOST_CHECK_LE( i, j );
BOOST_CHECK_GE( i, j );
++i;
BOOST_CHECK_LE( i, j );
BOOST_CHECK_GE( j, i );
char const* str1 = "test1";
char const* str2 = "test1";
BOOST_CHECK_NE( str1, str2 );
}
//____________________________________________________________________________//
bool is_even( int i ) { return i%2 == 0; }
int foo( int arg, int mod ) { return arg % mod; }
bool moo( int arg1, int arg2, int mod ) { return ((arg1+arg2) % mod) == 0; }