Pass tests with GDC 10.3
This commit is contained in:
parent
4f48544297
commit
d9fda61fe1
@ -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);
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user