Skip to content

Commit

Permalink
test for opAssign for stdcpp.list for all runtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Nyarko authored and Emmanuel Nyarko committed Apr 24, 2024
1 parent b90e65c commit 95f72f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/stdcpp/test/list.d
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 95f72f8

Please sign in to comment.