diff options
| author | Eugen Wissner <belka@caraus.de> | 2025-08-24 13:01:12 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2025-08-24 13:01:12 +0200 |
| commit | 260b1312229c39e6a1a47e5850c7aeb760dccbb2 (patch) | |
| tree | a80a1fdf459a4fb49cb4d96ec0b9eddcfbf60fc3 /tests | |
| parent | 1857d59375b3fc6d434f7a028143102d0e29ed34 (diff) | |
| download | tanya-260b1312229c39e6a1a47e5850c7aeb760dccbb2.tar.gz | |
Remove meta.transform duplicating Phobos
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/tanya/meta/tests/trait.d | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/tests/tanya/meta/tests/trait.d b/tests/tanya/meta/tests/trait.d index 4df2f18..3440fa0 100644 --- a/tests/tanya/meta/tests/trait.d +++ b/tests/tanya/meta/tests/trait.d @@ -89,84 +89,3 @@ import tanya.meta.trait; static assert(is(FunctionTypeOf!S2 == function)); static assert(is(FunctionTypeOf!s2 == function)); } - -@nogc nothrow pure @safe unittest -{ - static assert(!hasElaborateAssign!int); - - static struct S1 - { - void opAssign(S1) - { - } - } - static struct S2 - { - void opAssign(int) - { - } - } - static struct S3 - { - S1 s; - alias s this; - } - static assert(hasElaborateAssign!S1); - static assert(!hasElaborateAssign!(const S1)); - static assert(hasElaborateAssign!(S1[1])); - static assert(!hasElaborateAssign!(S1[0])); - static assert(!hasElaborateAssign!S2); - static assert(hasElaborateAssign!S3); - - static struct S4 - { - void opAssign(S4) - { - } - @disable this(this); - } - static assert(hasElaborateAssign!S4); -} - -// Produces a tuple for an enum with only one member -@nogc nothrow pure @safe unittest -{ - enum E : int - { - one = 0, - } - static assert(EnumMembers!E == AliasSeq!0); -} - -@nogc nothrow pure @safe unittest -{ - class RefCountedStore(T) - { - } - static assert(!isInnerClass!(RefCountedStore!int)); -} - -@nogc nothrow pure @safe unittest -{ - static struct DisabledOpEquals - { - @disable bool opEquals(typeof(this)) @nogc nothrow pure @safe; - - int opCmp(typeof(this)) @nogc nothrow pure @safe - { - return 0; - } - } - static assert(!isEqualityComparable!DisabledOpEquals); - static assert(isOrderingComparable!DisabledOpEquals); - - static struct OpEquals - { - bool opEquals(typeof(this)) @nogc nothrow pure @safe - { - return true; - } - } - static assert(isEqualityComparable!OpEquals); - static assert(!isOrderingComparable!OpEquals); -} |
