From 95f72f892cc28e283a8eda4a153c55679f9f13fc Mon Sep 17 00:00:00 2001 From: Emmanuel Nyarko Date: Wed, 24 Apr 2024 20:12:36 +0000 Subject: [PATCH] test for opAssign for stdcpp.list for all runtimes --- source/stdcpp/test/list.d | 3 +++ 1 file changed, 3 insertions(+) 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 }