summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2025-08-25 16:09:03 +0200
committerEugen Wissner <belka@caraus.de>2025-08-25 16:09:03 +0200
commitb8fa670c5a1e6e856ced5d1be7f04360e91e0c7d (patch)
tree14cbbbc198a6bc2c0fb56219af375c6ddf95a4e1 /tests
parent720d259cfc1db61d2deadca8b3e7751182d789b2 (diff)
downloadtanya-b8fa670c5a1e6e856ced5d1be7f04360e91e0c7d.tar.gz
Merge os, middle and meta subpackages
Diffstat (limited to 'tests')
-rw-r--r--tests/tanya/math/tests/package.d13
-rw-r--r--tests/tanya/memory/tests/smartref.d4
-rw-r--r--tests/tanya/meta/tests/metafunction.d30
3 files changed, 2 insertions, 45 deletions
diff --git a/tests/tanya/math/tests/package.d b/tests/tanya/math/tests/package.d
index fe10efd..2fc47ef 100644
--- a/tests/tanya/math/tests/package.d
+++ b/tests/tanya/math/tests/package.d
@@ -4,16 +4,3 @@
module tanya.math.tests;
import tanya.math;
-
-static if (ieeePrecision!float == IEEEPrecision.doubleExtended)
-@nogc nothrow pure @safe unittest
-{
- assert(classify(1.68105e-10) == FloatingPointClass.normal);
- assert(classify(1.68105e-4932L) == FloatingPointClass.subnormal);
-
- // Emulate unnormals, because they aren't generated anymore since i386
- FloatBits!real unnormal;
- unnormal.exp = 0x123;
- unnormal.mantissa = 0x1;
- assert(classify(unnormal) == FloatingPointClass.subnormal);
-}
diff --git a/tests/tanya/memory/tests/smartref.d b/tests/tanya/memory/tests/smartref.d
index 25d7d8f..52d4904 100644
--- a/tests/tanya/memory/tests/smartref.d
+++ b/tests/tanya/memory/tests/smartref.d
@@ -3,10 +3,10 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
module tanya.memory.tests.smartref;
-import std.traits : ReturnType;
+import std.traits;
import tanya.memory.allocator;
import tanya.memory.smartref;
-import tanya.meta.trait;
+import tanya.meta;
import tanya.test.stub;
@nogc @system unittest
diff --git a/tests/tanya/meta/tests/metafunction.d b/tests/tanya/meta/tests/metafunction.d
deleted file mode 100644
index 586e60d..0000000
--- a/tests/tanya/meta/tests/metafunction.d
+++ /dev/null
@@ -1,30 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-module tanya.meta.tests.metafunction;
-
-import tanya.meta.metafunction;
-
-@nogc nothrow pure @safe unittest
-{
- enum cmp(int x, int y) = x - y;
- static assert(isSorted!(cmp));
- static assert(isSorted!(cmp, 1));
- static assert(isSorted!(cmp, 1, 2, 2));
- static assert(isSorted!(cmp, 1, 2, 2, 4));
- static assert(isSorted!(cmp, 1, 2, 2, 4, 8));
- static assert(!isSorted!(cmp, 32, 2, 2, 4, 8));
- static assert(isSorted!(cmp, 32, 32));
-}
-
-@nogc nothrow pure @safe unittest
-{
- enum cmp(int x, int y) = x < y;
- static assert(isSorted!(cmp));
- static assert(isSorted!(cmp, 1));
- static assert(isSorted!(cmp, 1, 2, 2));
- static assert(isSorted!(cmp, 1, 2, 2, 4));
- static assert(isSorted!(cmp, 1, 2, 2, 4, 8));
- static assert(!isSorted!(cmp, 32, 2, 2, 4, 8));
- static assert(isSorted!(cmp, 32, 32));
-}