Skip to content

Commit

Permalink
Fix move assignement test
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebionne committed Mar 30, 2020
1 parent 698427a commit 751abc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/core/image/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ struct test_move_assignement
gil::point_t const dimensions{256, 128};
{
image_t image = fixture::create_image<image_t>(dimensions.x, dimensions.y, 0);
image_t image2 = std::move(image);
image_t image2 = fixture::create_image<image_t>(dimensions.x * 2, dimensions.y * 2, 1);
image2 = std::move(image);
BOOST_TEST_EQ(image2.dimensions(), dimensions);
BOOST_TEST_EQ(image.dimensions(), gil::point_t{});
}
Expand Down

0 comments on commit 751abc8

Please sign in to comment.