mirror of
https://github.com/ETLCPP/etl.git
synced 2026-11-09 22:59:47 +08:00
Added copy constructor test
This commit is contained in:
parent
0423a14033
commit
8477b87e3a
@ -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)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user