Skip to content

Commit

Permalink
Increased unittest coverage of std.complex to 100% (#7081)
Browse files Browse the repository at this point in the history
Increase unit-test coverage of complex.d to 100 percent
merged-on-behalf-of: Nicholas Wilson <[email protected]>
  • Loading branch information
jasonSchroeder89 authored and dlang-bot committed Jun 20, 2019
1 parent 991331a commit d1c8fb0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions std/complex.d
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,7 @@ Complex!T sqrt(T)(Complex!T z) @safe pure nothrow @nogc
assert(sqrt(complex(0.0)) == 0.0);
assert(sqrt(complex(1.0L, 0)) == std.math.sqrt(1.0L));
assert(sqrt(complex(-1.0L, 0)) == complex(0, 1.0L));
assert(sqrt(complex(-8.0, -6.0)) == complex(1.0, -3.0));
}

@safe pure nothrow unittest
Expand Down

0 comments on commit d1c8fb0

Please sign in to comment.