diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/tanya/tests/typecons.d | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/tanya/tests/typecons.d b/tests/tanya/tests/typecons.d deleted file mode 100644 index 152370c..0000000 --- a/tests/tanya/tests/typecons.d +++ /dev/null @@ -1,23 +0,0 @@ -module tanya.tests.typecons; - -import tanya.test.stub; -import tanya.typecons; - -@nogc nothrow pure @safe unittest -{ - static assert(is(Tuple!(int, int))); - static assert(!is(Tuple!(int, 5))); - - static assert(is(Tuple!(int, "first", int))); - static assert(is(Tuple!(int, "first", int, "second"))); - static assert(is(Tuple!(int, "first", int))); - - static assert(is(Tuple!(int, int, "second"))); - static assert(!is(Tuple!("first", int, "second", int))); - static assert(!is(Tuple!(int, int, int))); - - static assert(!is(Tuple!(int, "first"))); - - static assert(!is(Tuple!(int, double, char))); - static assert(!is(Tuple!(int, "first", double, "second", char, "third"))); -} |
