Commit a6c626eb authored by Krystian Kuzniarek's avatar Krystian Kuzniarek

change notation of a test so the move assignment operator is tested

parent 2f598a42
......@@ -69,7 +69,8 @@ TEST(optional, move_assignment_operator) {
ASSERT_FALSE(value.isEmpty());
EXPECT_TRUE(value.get());
Optional<bool> move_assigned = std::move(value);
Optional<bool> move_assigned;
move_assigned = std::move(value);
ASSERT_FALSE(move_assigned.isEmpty());
EXPECT_TRUE(move_assigned.get());
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment