[DEV] add v1.76.0

This commit is contained in:
2021-10-05 21:37:46 +02:00
parent a97e9ae7d4
commit d0115b733d
45133 changed files with 4744437 additions and 1026325 deletions

View File

@@ -1,5 +1,5 @@
[/
/ Copyright (c) 2003 Boost.Test contributors
/ Copyright (c) 2003 Boost.Test contributors
/
/ Distributed under the Boost Software License, Version 1.0. (See accompanying
/ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -13,7 +13,7 @@ How should a test program report errors? Displaying an error message is an obvio
if( something_bad_detected )
std::cout << "something bad has been detected" << std::endl;
``
But that requires inspection of the program's output after each run to determine if an error occurred. Since test
programs are often run as part of a regression test suite, human inspection of output to detect error messages is time
consuming and unreliable. Test frameworks like GNU/expect can do the inspections automatically, but are overly complex
@@ -65,7 +65,7 @@ __BOOST_AUTO_TEST_CASE__( my_test )
BOOST_TEST( test_object.is_valid() );
}
``
Now, you not only receive uniform result code, even in case of exception, but also nicely formatted output from
__BOOST_TEST__ tool, would you choose to see it. Is there any other ways to perform checks? The following example test
program shows several different ways to detect and report an error in the `add()` function.

View File

@@ -14,7 +14,7 @@ I will write tests before the coding, during the design stage. I have read a lot
tests, I have the unit test framework in hand and an idea of new class. So let's get started.
Let say I want to encapsulate an unchangeable C character buffer with a length into the simple class `const_string`.
Rationale: a string class that does not allocate a memory and provide a convenient read-only access to the preallocated
Rationale: a string class that does not allocate a memory and provide a convenient read-only access to the pre-allocated
character buffer. I will probably want `const_string` to have an interface similar to the class std::string. What will I
do first? In my new life I will start with writing a test module for future class `const_string`. It will look like
this:

View File

@@ -53,5 +53,6 @@ and posted about this online. This page gathers a few of the additional material
* [@http://www.eld.leidenuniv.nl/~moene/Home/projects/testdox/boosttest/ Customizing the output log and report format]
* [@https://github.com/etas/vs-boost-unit-test-adapter Boost Test Adapter] (Boost.Test extension for Microsoft Visual Studio, also
available from [@https://visualstudiogallery.msdn.microsoft.com/5f4ae1bd-b769-410e-8238-fb30beda987f here]).
* [@https://marketplace.visualstudio.com/items?itemName=VisualCPPTeam.TestAdapterforBoostTest Microsoft Boost Test Adapter]
[endsect] [/section:web_wisdom]