diff options
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; |
