diff options
| author | Eugen Wissner <belka@caraus.de> | 2022-06-07 08:40:18 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2022-06-07 08:40:18 +0200 |
| commit | 90797a48be55b98d86e4e9ceffeecddd4ab90ac7 (patch) | |
| tree | 787359f97d8280633fae62d5b67ebf86dc031e90 /tests | |
| parent | 5453c646f622b0cdf694d0e64813a39c26a70e0d (diff) | |
| download | tanya-90797a48be55b98d86e4e9ceffeecddd4ab90ac7.tar.gz | |
Replace tuples with custom types
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"))); -} |
