More coverage in unittest for isScalarType

This commit is contained in:
Per Nordlöw 2017-01-23 22:02:08 +01:00
parent 93e302ba98
commit f9947f3ffb

View file

@ -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)));
}