mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 22:50:38 +03:00
More coverage in unittest for isScalarType
This commit is contained in:
parent
93e302ba98
commit
f9947f3ffb
1 changed files with 3 additions and 4 deletions
|
@ -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)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue