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 33ddb36
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/stdcpp/test/list.d
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,8 @@ unittest
allocator!int alloc_instance = allocator!(int).init;
auto q = list!int(8, 9);
assert(q.get_allocator == alloc_instance);
assert(q.size == 8);
auto p = list!int(3);
q = p; // opAssign
assert(q.size == 3); // after opAssign
}

0 comments on commit 33ddb36

Please sign in to comment.