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

Commit

Permalink
Simplify unittest per Kenji's comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
H. S. Teoh committed Jul 2, 2013
1 parent 032bac6 commit 4004da2
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/object_.d
Expand Up @@ -2583,15 +2583,11 @@ unittest
assert(u == a.capacity); //a should not have been extended
}

unittest
// Issue 6646: should be possible to use array.reserve from SafeD.
@safe unittest
{
// Issue 6646: should be possible to use array.reserve from SafeD.
void func() @safe
{
int[] a;
a.reserve(10);
}
func();
int[] a;
a.reserve(10);
}

/**
Expand Down

0 comments on commit 4004da2

Please sign in to comment.