|
Boost-Commit : |
From: gennadiy.rozental_at_[hidden]
Date: 2007-11-22 15:56:08
Author: rogeeff
Date: 2007-11-22 15:56:07 EST (Thu, 22 Nov 2007)
New Revision: 41308
URL: http://svn.boost.org/trac/boost/changeset/41308
Log:
negative chars test added
some statements added to the online_test
Text files modified:
trunk/libs/test/test/online_test.cpp | 2
trunk/libs/test/test/test_files/test_tools_test.pattern | 139 ++++++++++++++++++++-------------------
trunk/libs/test/test/test_tools_test.cpp | 4 +
3 files changed, 76 insertions(+), 69 deletions(-)
Modified: trunk/libs/test/test/online_test.cpp
==============================================================================
--- trunk/libs/test/test/online_test.cpp (original)
+++ trunk/libs/test/test/online_test.cpp 2007-11-22 15:56:07 EST (Thu, 22 Nov 2007)
@@ -18,6 +18,8 @@
BOOST_AUTO_TEST_CASE( test )
{
+ int i = 1;
+ BOOST_CHECK_EQUAL( i*i, 1 );
}
//____________________________________________________________________________//
Modified: trunk/libs/test/test/test_files/test_tools_test.pattern
==============================================================================
--- trunk/libs/test/test/test_files/test_tools_test.pattern (original)
+++ trunk/libs/test/test/test_files/test_tools_test.pattern 2007-11-22 15:56:07 EST (Thu, 22 Nov 2007)
@@ -1,69 +1,70 @@
-131: warning in "test_BOOST_WARN": condition sizeof(int) == sizeof(short) is not satisfied
-134: info: check sizeof(unsigned char) == sizeof(char) passed
-156: error in "test_BOOST_CHECK": check false failed
-157: error in "test_BOOST_CHECK": check 1==2 failed
-158: error in "test_BOOST_CHECK": check i==1 failed
-161: info: check i==2 passed
-168: error in "test_BOOST_REQUIRE": not aborted
-170: fatal error in "test_BOOST_REQUIRE": critical check false failed
-174: fatal error in "test_BOOST_REQUIRE": critical check j > 5 failed
-177: info: check j < 5 passed
-177: error in "test_BOOST_REQUIRE": not aborted
-191: info: check 'object size 33 is too small' passed
-208: error in "test_BOOST_CHECK_MESSAGE": Well, may be that what I believe in
-210: error in "test_BOOST_CHECK_MESSAGE": Checking predicate failed. Some explanation
-213: info: check 'Could it fail?' passed
-220: fatal error in "test_BOOST_REQUIRE_MESSAGE": Here we should stop
-223: info: check 'That's OK' passed
-223: error in "test_BOOST_REQUIRE_MESSAGE": not aborted
-230: error in "test_BOOST_ERROR": Fail to miss an error
-237: fatal error in "test_BOOST_FAIL": No! No! Show must go on.
-253: error in "test_BOOST_CHECK_THROW": exception my_exception is expected
-256: warning in "test_BOOST_CHECK_THROW": exception my_exception is expected
-259: fatal error in "test_BOOST_CHECK_THROW": exception my_exception is expected
-262: info: check 'exception my_exception is caught' passed
-269: error in "test_BOOST_CHECK_EXCEPTION": incorrect exception my_exception is caught
-272: info: check 'incorrect exception my_exception is caught' passed
-282: error in "test_BOOST_CHECK_NO_THROW": exception thrown by throw my_exception()
-328: error in "test_BOOST_CHECK_EQUAL": check i == j failed [1 != 2]
-334: error in "test_BOOST_CHECK_EQUAL": check str1 == str2 failed [test1 != test12]
-337: error in "test_BOOST_CHECK_EQUAL": check i+1 == j failed [4 != 2]
-340: info: check str1 == str3+1 passed
-349: fatal error in "test_BOOST_CHECK_EQUAL": critical check str1 == str2 failed [test != null string]
-355: warning in "test_BOOST_CHECK_EQUAL": condition b1 == b2 is not satisfied [B(1) != B(2)]
-361: error in "test_BOOST_CHECK_EQUAL": check c1 == c3 failed [C(0,100) != C(1,102)]. Index mismatch
-362: error in "test_BOOST_CHECK_EQUAL": check c1 == c2 failed [C(0,100) != C(0,101)]. Id mismatch
-373: error in "test_BOOST_CHECK_LOGICAL_EXPR": check ++i != j failed [2 == 2]
-375: error in "test_BOOST_CHECK_LOGICAL_EXPR": check i < j failed [2 >= 2]
-376: error in "test_BOOST_CHECK_LOGICAL_EXPR": check i > j failed [2 <= 2]
-383: error in "test_BOOST_CHECK_LOGICAL_EXPR": check i <= j failed [3 > 2]
-384: error in "test_BOOST_CHECK_LOGICAL_EXPR": check j >= i failed [2 < 3]
-389: error in "test_BOOST_CHECK_LOGICAL_EXPR": check str1 != str2 failed [test1 == test1]
-419: error in "test_BOOST_CHECK_PREDICATE": check is_even( i ) failed for ( 17 )
-422: error in "test_BOOST_CHECK_PREDICATE": check not_equal_to<int>()( i, 17 ) failed for ( 17, 17 )
-428: warning in "test_BOOST_CHECK_PREDICATE": condition moo( 12, i, j ) is not satisfied for ( 12, 17, 15 )
-436: error in "test_BOOST_CHECK_PREDICATE": check compare_lists( l1, l2 ) failed for ( , ). Different sizes [2!=0]
-447: error in "test_BOOST_REQUIRE_PREDICATE": not aborted
-449: fatal error in "test_BOOST_REQUIRE_PREDICATE": critical check less_equal<int>()( arg2, arg1 ) failed for ( 2, 1 )
-470: error in "test_BOOST_CHECK_EQUAL_COLLECTIONS": check { testlist.begin(), testlist.end() } == { pattern, pattern+7 } failed.
-Mismatch in a position 2: 4 != 3
-Mismatch in a position 5: 7 != 6
-471: error in "test_BOOST_CHECK_EQUAL_COLLECTIONS": check { testlist.begin(), testlist.end() } == { pattern, pattern+2 } failed.
-Collections size mismatch: 7 != 2
-480: error in "test_BOOST_CHECK_BITWISE_EQUAL": check (char)0x06 =.= (char)0x16 failed.
-Mismatch in a position 4
-483: warning in "test_BOOST_CHECK_BITWISE_EQUAL": condition (char)0x26 =.= (char)0x04 is not satisfied.
-Mismatch in a position 1
-Mismatch in a position 5
-486: fatal error in "test_BOOST_CHECK_BITWISE_EQUAL": critical check (char)0x26 =.= (int)0x26 failed.
-Operands bit sizes mismatch: 8 != 32
-still testing
-1+1=2
-2+2=4
-struct A
-0x14
- 20
-0: fatal error in "test_BOOST_TEST_CHECKPOINT": C string: some error
-521: last checkpoint: Going to do a silly things
-0: fatal error in "test_BOOST_TEST_PASSPOINT": unknown type
-532: last checkpoint
+131: warning in "test_BOOST_WARN": condition sizeof(int) == sizeof(short) is not satisfied
+134: info: check sizeof(unsigned char) == sizeof(char) passed
+156: error in "test_BOOST_CHECK": check false failed
+157: error in "test_BOOST_CHECK": check 1==2 failed
+158: error in "test_BOOST_CHECK": check i==1 failed
+161: info: check i==2 passed
+168: error in "test_BOOST_REQUIRE": not aborted
+170: fatal error in "test_BOOST_REQUIRE": critical check false failed
+174: fatal error in "test_BOOST_REQUIRE": critical check j > 5 failed
+177: info: check j < 5 passed
+177: error in "test_BOOST_REQUIRE": not aborted
+191: info: check 'object size 33 is too small' passed
+208: error in "test_BOOST_CHECK_MESSAGE": Well, may be that what I believe in
+210: error in "test_BOOST_CHECK_MESSAGE": Checking predicate failed. Some explanation
+213: info: check 'Could it fail?' passed
+220: fatal error in "test_BOOST_REQUIRE_MESSAGE": Here we should stop
+223: info: check 'That's OK' passed
+223: error in "test_BOOST_REQUIRE_MESSAGE": not aborted
+230: error in "test_BOOST_ERROR": Fail to miss an error
+237: fatal error in "test_BOOST_FAIL": No! No! Show must go on.
+253: error in "test_BOOST_CHECK_THROW": exception my_exception is expected
+256: warning in "test_BOOST_CHECK_THROW": exception my_exception is expected
+259: fatal error in "test_BOOST_CHECK_THROW": exception my_exception is expected
+262: info: check 'exception my_exception is caught' passed
+269: error in "test_BOOST_CHECK_EXCEPTION": incorrect exception my_exception is caught
+272: info: check 'incorrect exception my_exception is caught' passed
+282: error in "test_BOOST_CHECK_NO_THROW": exception thrown by throw my_exception()
+328: error in "test_BOOST_CHECK_EQUAL": check i == j failed [1 != 2]
+334: error in "test_BOOST_CHECK_EQUAL": check str1 == str2 failed [test1 != test12]
+337: error in "test_BOOST_CHECK_EQUAL": check i+1 == j failed [4 != 2]
+340: info: check str1 == str3+1 passed
+349: fatal error in "test_BOOST_CHECK_EQUAL": critical check str1 == str2 failed [test != null string]
+355: warning in "test_BOOST_CHECK_EQUAL": condition b1 == b2 is not satisfied [B(1) != B(2)]
+361: error in "test_BOOST_CHECK_EQUAL": check c1 == c3 failed [C(0,100) != C(1,102)]. Index mismatch
+362: error in "test_BOOST_CHECK_EQUAL": check c1 == c2 failed [C(0,100) != C(0,101)]. Id mismatch
+366: error in "test_BOOST_CHECK_EQUAL": check ch1 == ch2 failed [0xfffffffe != 0xfffffffd]
+377: error in "test_BOOST_CHECK_LOGICAL_EXPR": check ++i != j failed [2 == 2]
+379: error in "test_BOOST_CHECK_LOGICAL_EXPR": check i < j failed [2 >= 2]
+380: error in "test_BOOST_CHECK_LOGICAL_EXPR": check i > j failed [2 <= 2]
+387: error in "test_BOOST_CHECK_LOGICAL_EXPR": check i <= j failed [3 > 2]
+388: error in "test_BOOST_CHECK_LOGICAL_EXPR": check j >= i failed [2 < 3]
+393: error in "test_BOOST_CHECK_LOGICAL_EXPR": check str1 != str2 failed [test1 == test1]
+423: error in "test_BOOST_CHECK_PREDICATE": check is_even( i ) failed for ( 17 )
+426: error in "test_BOOST_CHECK_PREDICATE": check not_equal_to<int>()( i, 17 ) failed for ( 17, 17 )
+432: warning in "test_BOOST_CHECK_PREDICATE": condition moo( 12, i, j ) is not satisfied for ( 12, 17, 15 )
+440: error in "test_BOOST_CHECK_PREDICATE": check compare_lists( l1, l2 ) failed for ( , ). Different sizes [2!=0]
+451: error in "test_BOOST_REQUIRE_PREDICATE": not aborted
+453: fatal error in "test_BOOST_REQUIRE_PREDICATE": critical check less_equal<int>()( arg2, arg1 ) failed for ( 2, 1 )
+474: error in "test_BOOST_CHECK_EQUAL_COLLECTIONS": check { testlist.begin(), testlist.end() } == { pattern, pattern+7 } failed.
+Mismatch in a position 2: 4 != 3
+Mismatch in a position 5: 7 != 6
+475: error in "test_BOOST_CHECK_EQUAL_COLLECTIONS": check { testlist.begin(), testlist.end() } == { pattern, pattern+2 } failed.
+Collections size mismatch: 7 != 2
+484: error in "test_BOOST_CHECK_BITWISE_EQUAL": check (char)0x06 =.= (char)0x16 failed.
+Mismatch in a position 4
+487: warning in "test_BOOST_CHECK_BITWISE_EQUAL": condition (char)0x26 =.= (char)0x04 is not satisfied.
+Mismatch in a position 1
+Mismatch in a position 5
+490: fatal error in "test_BOOST_CHECK_BITWISE_EQUAL": critical check (char)0x26 =.= (int)0x26 failed.
+Operands bit sizes mismatch: 8 != 32
+still testing
+1+1=2
+2+2=4
+struct A
+0x14
+ 20
+0: fatal error in "test_BOOST_TEST_CHECKPOINT": C string: some error
+525: last checkpoint: Going to do a silly things
+0: fatal error in "test_BOOST_TEST_PASSPOINT": unknown type
+536: last checkpoint
Modified: trunk/libs/test/test/test_tools_test.cpp
==============================================================================
--- trunk/libs/test/test/test_tools_test.cpp (original)
+++ trunk/libs/test/test/test_tools_test.cpp 2007-11-22 15:56:07 EST (Thu, 22 Nov 2007)
@@ -360,6 +360,10 @@
C c3( 1, 102 );
BOOST_CHECK_EQUAL( c1, c3 );
BOOST_CHECK_EQUAL( c1, c2 );
+
+ char ch1 = -2;
+ char ch2 = -3;
+ BOOST_CHECK_EQUAL(ch1, ch2);
}
//____________________________________________________________________________//
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk