mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Merge 3d57015aa2 into merged_master (Bitcoin PR #19491)
This commit is contained in:
commit
3894f4419c
2 changed files with 11 additions and 1 deletions
|
|
@ -41,6 +41,16 @@ namespace BCLog {
|
|||
|
||||
BOOST_FIXTURE_TEST_SUITE(util_tests, BasicTestingSetup)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(util_check)
|
||||
{
|
||||
// Check that Assert can forward
|
||||
const std::unique_ptr<int> p_two = Assert(MakeUnique<int>(2));
|
||||
// Check that Assert works on lvalues and rvalues
|
||||
const int two = *Assert(p_two);
|
||||
Assert(two == 2);
|
||||
Assert(true);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(util_criticalsection)
|
||||
{
|
||||
RecursiveMutex cs;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue