diff options
| -rw-r--r-- | source/tanya/container/array.d | 3 | ||||
| -rw-r--r-- | tests/tanya/net/tests/iface.d | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/source/tanya/container/array.d b/source/tanya/container/array.d index 6031c21..c6d06ad 100644 --- a/source/tanya/container/array.d +++ b/source/tanya/container/array.d @@ -1123,7 +1123,8 @@ struct Array(T) } /// ditto - bool opEquals(Range that) + bool opEquals(R)(R that) + if (is(R == Range)) { return equal(opIndex(), that); } diff --git a/tests/tanya/net/tests/iface.d b/tests/tanya/net/tests/iface.d index c77692a..7726b0e 100644 --- a/tests/tanya/net/tests/iface.d +++ b/tests/tanya/net/tests/iface.d @@ -4,13 +4,14 @@ module tanya.net.tests.iface; import std.algorithm.comparison; +import std.utf; import tanya.net.iface; @nogc nothrow @safe unittest { version (linux) { - assert(equal(indexToName(1)[], "lo")); + assert(equal(indexToName(1)[], "lo".byChar)); } else version (Windows) { |
