Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
fix issue 14303 rt.util.container.array.Array has invalid unittest
Browse files Browse the repository at this point in the history
replace invalid test with something similar but valid
  • Loading branch information
braddr committed Mar 18, 2015
1 parent c64aec7 commit ebe07a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rt/util/container/array.d
Expand Up @@ -172,7 +172,9 @@ unittest
assert(cnt == 0);
ary.insertBack(RC(&cnt));
assert(cnt == 1);
ary.insertBack(ary.front);
ary.insertBack(RC(&cnt));
assert(cnt == 2);
ary.back = ary.front;
assert(cnt == 2);
ary.popBack();
assert(cnt == 1);
Expand Down

0 comments on commit ebe07a3

Please sign in to comment.