diff --git a/source/stdcpp/test/list.d b/source/stdcpp/test/list.d index d633eb0..dea98ed 100644 --- a/source/stdcpp/test/list.d +++ b/source/stdcpp/test/list.d @@ -48,4 +48,7 @@ unittest allocator!int alloc_instance = allocator!(int).init; auto q = list!int(8, 9); assert(q.get_allocator == alloc_instance); + assert(q.size == 8); + q = p; // opAssign + assert(q.size == 3); // after opAssign }