Add check for correct typecode for tuple to unittest

This commit is contained in:
Harry T. Vennik 2017-06-06 07:10:11 +02:00
parent 7b826ec80c
commit 227d0085ca

View file

@ -171,6 +171,7 @@ unittest {
// type codes // type codes
typeCode!int().assertEqual(cast(int)('i')); typeCode!int().assertEqual(cast(int)('i'));
typeCode!bool().assertEqual(cast(int)('b')); typeCode!bool().assertEqual(cast(int)('b'));
typeCode!(Tuple!(int, string))().assertEqual(cast(int)('r'));
// ctfe-capable // ctfe-capable
static string sig = typeSig!ulong(); static string sig = typeSig!ulong();
sig.assertEqual("t"); sig.assertEqual("t");