Skip to content

Commit

Permalink
Added test for the one-element branch of Appender.put().
Browse files Browse the repository at this point in the history
  • Loading branch information
dnadlinger committed Aug 2, 2011
1 parent 27ed4eb commit 32aada6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions std/array.d
Original file line number Diff line number Diff line change
Expand Up @@ -2191,6 +2191,8 @@ unittest
app2.put(3);
app2.put([ 4, 5, 6 ][]);
assert(app2.data == [ 1, 2, 3, 4, 5, 6 ]);
app2.put([ 7 ]);
assert(app2.data == [ 1, 2, 3, 4, 5, 6, 7 ]);

// Issue 5663 tests
{
Expand Down

0 comments on commit 32aada6

Please sign in to comment.