Skip to content

Commit

Permalink
Annotate unittests per Phobos coding style.
Browse files Browse the repository at this point in the history
  • Loading branch information
H. S. Teoh committed Apr 26, 2017
1 parent e0f9477 commit abf4e93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/numeric.d
Expand Up @@ -2720,15 +2720,15 @@ T gcd(T)(T a, T b)
}

// Issue 7102
unittest
@system pure unittest
{
import std.bigint : BigInt;
assert(gcd(BigInt("71_000_000_000_000_000_000"),
BigInt("31_000_000_000_000_000_000")) ==
BigInt("1_000_000_000_000_000_000"));
}

unittest
@safe pure nothrow unittest
{
// A numerical type that only supports % and - (to force gcd implementation
// to use Euclidean algorithm).
Expand Down

0 comments on commit abf4e93

Please sign in to comment.