From 484cb13317921c78468dc3f9c16a0fc786b119c0 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Mon, 18 Mar 2019 13:03:52 +0100 Subject: Separate non-documentation tests from the code --- os/tanya/os/error.d | 6 ------ 1 file changed, 6 deletions(-) (limited to 'os') diff --git a/os/tanya/os/error.d b/os/tanya/os/error.d index 31c0102..0fabfc2 100644 --- a/os/tanya/os/error.d +++ b/os/tanya/os/error.d @@ -407,12 +407,6 @@ struct ErrorCode assert(ec.toString() == "An invalid pointer address detected"); } - @nogc nothrow pure @safe unittest - { - ErrorCode ec = cast(ErrorCode.ErrorNo) -1; - assert(ec.toString() is null); - } - private ErrorNo value_ = ErrorNo.success; alias ErrorNo this; -- cgit v1.2.3