diff --git a/std/complex.d b/std/complex.d index 8adffec0fc1..7dba21f97dd 100644 --- a/std/complex.d +++ b/std/complex.d @@ -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