From f9947f3ffbcce0c3df9ed949b0ce9ee77dd2bfd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20Nordl=C3=B6w?= Date: Mon, 23 Jan 2017 22:02:08 +0100 Subject: [PATCH] More coverage in unittest for isScalarType --- std/traits.d | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/std/traits.d b/std/traits.d index 38460314f..3f02177ff 100644 --- a/std/traits.d +++ b/std/traits.d @@ -5370,16 +5370,15 @@ enum bool isScalarType(T) = is(T : real); @safe unittest { static assert(!isScalarType!void); - static assert( isScalarType!(immutable(bool))); static assert( isScalarType!(immutable(byte))); - static assert( isScalarType!(immutable(short))); + static assert( isScalarType!(immutable(ushort))); static assert( isScalarType!(immutable(int))); + static assert( isScalarType!(ulong)); static assert( isScalarType!(shared(float))); static assert( isScalarType!(shared(const bool))); static assert( isScalarType!(const(char))); - static assert( isScalarType!(const(wchar))); + static assert( isScalarType!(wchar)); static assert( isScalarType!(const(dchar))); - static assert( isScalarType!(const(float))); static assert( isScalarType!(const(double))); static assert( isScalarType!(const(real))); }