Skip to content

Commit

Permalink
recent pushes
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmankoko committed Oct 15, 2023
1 parent 9d15f94 commit ae0fd79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/stdcpp/test/vector.d
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import stdcpp.vector;

unittest
{
vector!int vec;
vec.push_back(42);
assert(vec.length == 1);
assert(vec[0] == 42);
auto p = vector!int(5);
p.push_back(42);
assert(p.length == 6);
assert(p[0] == 0);
}

0 comments on commit ae0fd79

Please sign in to comment.