summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2021-05-26 10:29:03 +0200
committerEugen Wissner <belka@caraus.de>2021-05-26 10:29:55 +0200
commit4f4854429704624280a70c698dbc03724e55d988 (patch)
treef45381cdcd1310535df4f40503beaac527de2743 /tests
parent938a1bb5b400c39c34f9659da4945c299467d3f0 (diff)
downloadtanya-4f4854429704624280a70c698dbc03724e55d988.tar.gz
Allow building with GDC 10.3
Diffstat (limited to 'tests')
-rw-r--r--tests/tanya/algorithm/tests/mutation.d6
-rw-r--r--tests/tanya/range/tests/adapter.d12
2 files changed, 5 insertions, 13 deletions
diff --git a/tests/tanya/algorithm/tests/mutation.d b/tests/tanya/algorithm/tests/mutation.d
index 19ab636..4403dd7 100644
--- a/tests/tanya/algorithm/tests/mutation.d
+++ b/tests/tanya/algorithm/tests/mutation.d
@@ -39,7 +39,11 @@ import tanya.test.stub;
int value;
void opCall(int value) @nogc nothrow pure @safe
- in (this.value == 0)
+ in
+ {
+ assert(this.value == 0);
+ }
+ do
{
this.value = value;
}
diff --git a/tests/tanya/range/tests/adapter.d b/tests/tanya/range/tests/adapter.d
index 4ebffab..cdd90a1 100644
--- a/tests/tanya/range/tests/adapter.d
+++ b/tests/tanya/range/tests/adapter.d
@@ -12,18 +12,6 @@ private struct Container
}
}
-// Broken test because of the issue #20006.
-@nogc nothrow pure @safe unittest
-{
- auto func()()
- {
- Container container;
- return backInserter(container);
- }
- // static assert(!is(typeof(func!())));
- static assert(is(typeof(func!())));
-}
-
@nogc nothrow pure @safe unittest
{
Container container;