Fixed unit tests (still need to add more unit tests for move semantics)

This commit is contained in:
Andrzej Krzemienski
2014-04-26 00:22:39 +02:00
parent a26d11be87
commit 5c69bac12f
3 changed files with 64 additions and 38 deletions

View File

@ -146,7 +146,8 @@ void test_move_ctor_from_optional_T()
void test_move_assign_from_U()
{
optional<Oracle> o1;
optional<Oracle> o1 = boost::none; // test if additional ctors didn't break it
o1 = boost::none; // test if additional assignments didn't break it
o1 = OracleVal();
BOOST_CHECK(o1);