From 90797a48be55b98d86e4e9ceffeecddd4ab90ac7 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Tue, 7 Jun 2022 08:40:18 +0200 Subject: Replace tuples with custom types --- tests/tanya/tests/typecons.d | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 tests/tanya/tests/typecons.d (limited to 'tests') 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"))); -} -- cgit v1.2.3