1
0
forked from Alepha/Alepha

Try eliminating a nesting depth.

This commit is contained in:
2021-10-16 23:27:39 -04:00
parent 6110f618d8
commit 61841561f9

View File

@ -11,16 +11,13 @@ main( const int argcnt, const char *const argvec[] )
return Alepha::Testing::runAllTests( argcnt, argvec ); return Alepha::Testing::runAllTests( argcnt, argvec );
} }
namespace static auto tests= Alepha::Utility::enroll <=[]
{ {
using namespace Alepha::exports::auto_raii; using namespace Alepha::exports::auto_raii;
using namespace Alepha::Utility::exports::evaluation;
using namespace Alepha::Testing::exports::literals; using namespace Alepha::Testing::exports::literals;
using Alepha::Testing::exports::TestState; using Alepha::Testing::exports::TestState;
auto tests= enroll <=[]
{
"basic.syntax"_test <=[]( TestState test ) "basic.syntax"_test <=[]( TestState test )
{ {
AutoRAII managed{ []{ return 42; }, []( auto ){} }; AutoRAII managed{ []{ return 42; }, []( auto ){} };
@ -39,5 +36,4 @@ namespace
test.expect( not initialized ); test.expect( not initialized );
test.expect( destroyed ); test.expect( destroyed );
}; };
}; };
}