Added copy constructor test

This commit is contained in:
John Wellbelove 2016-01-13 18:56:23 +00:00
parent 0423a14033
commit 8477b87e3a

View File

@ -56,6 +56,17 @@ namespace
CHECK_EQUAL(7, value.last());
}
//*************************************************************************
TEST(test_copy_constructor)
{
etl::cyclic_value<int> value(2, 7);
etl::cyclic_value<int> value2(value);
CHECK(value == value2);
value2.set(3, 6);
CHECK(value != value2);
}
//*************************************************************************
TEST(test_set)
{