diff options
| author | Eugen Wissner <belka@caraus.de> | 2021-05-26 10:29:03 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2021-05-26 10:29:55 +0200 |
| commit | 4f4854429704624280a70c698dbc03724e55d988 (patch) | |
| tree | f45381cdcd1310535df4f40503beaac527de2743 /tests | |
| parent | 938a1bb5b400c39c34f9659da4945c299467d3f0 (diff) | |
| download | tanya-4f4854429704624280a70c698dbc03724e55d988.tar.gz | |
Allow building with GDC 10.3
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/tanya/algorithm/tests/mutation.d | 6 | ||||
| -rw-r--r-- | tests/tanya/range/tests/adapter.d | 12 |
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; |
