@@ -117,7 +117,7 @@ ulong mach_absolute_time();
117117}
118118
119119// To verify that an lvalue isn't required.
120- version (DRuntimeUnittest ) private T copy(T)(T t)
120+ version (CoreUnittest ) private T copy(T)(T t)
121121{
122122 return t;
123123}
@@ -3968,7 +3968,7 @@ double _abs(double val) @safe pure nothrow @nogc
39683968}
39693969
39703970
3971- version (DRuntimeUnittest )
3971+ version (CoreUnittest )
39723972string doubleToString (double value) @safe pure nothrow
39733973{
39743974 string result;
@@ -3999,7 +3999,7 @@ unittest
39993999 assert (aStr == " -0.337" , aStr);
40004000}
40014001
4002- version (DRuntimeUnittest ) const (char )* numToStringz()(long value) @trusted pure nothrow
4002+ version (CoreUnittest ) const (char )* numToStringz()(long value) @trusted pure nothrow
40034003{
40044004 return (signedToTempString(value, 10 ) ~ " \0 " ).ptr;
40054005}
@@ -4009,7 +4009,7 @@ import core.internal.traits : AliasSeq;
40094009
40104010
40114011/+ An adjusted copy of std.exception.assertThrown. +/
4012- version (DRuntimeUnittest ) void _assertThrown(T : Throwable = Exception , E)
4012+ version (CoreUnittest ) void _assertThrown(T : Throwable = Exception , E)
40134013 (lazy E expression,
40144014 string msg = null ,
40154015 string file = __FILE__ ,
@@ -4104,7 +4104,7 @@ unittest
41044104}
41054105
41064106
4107- version (DRuntimeUnittest ) void assertApprox(D, E)(D actual,
4107+ version (CoreUnittest ) void assertApprox(D, E)(D actual,
41084108 E lower,
41094109 E upper,
41104110 string msg = " unittest failure" ,
@@ -4117,7 +4117,7 @@ version (DRuntimeUnittest) void assertApprox(D, E)(D actual,
41174117 throw new AssertError (msg ~ " : upper: " ~ actual.toString(), __FILE__ , line);
41184118}
41194119
4120- version (DRuntimeUnittest ) void assertApprox(D, E)(D actual,
4120+ version (CoreUnittest ) void assertApprox(D, E)(D actual,
41214121 E lower,
41224122 E upper,
41234123 string msg = " unittest failure" ,
@@ -4133,7 +4133,7 @@ version (DRuntimeUnittest) void assertApprox(D, E)(D actual,
41334133 }
41344134}
41354135
4136- version (DRuntimeUnittest ) void assertApprox(MT )(MT actual,
4136+ version (CoreUnittest ) void assertApprox(MT )(MT actual,
41374137 MT lower,
41384138 MT upper,
41394139 string msg = " unittest failure" ,
@@ -4143,7 +4143,7 @@ version (DRuntimeUnittest) void assertApprox(MT)(MT actual,
41434143 assertApprox(actual._ticks, lower._ticks, upper._ticks, msg, line);
41444144}
41454145
4146- version (DRuntimeUnittest ) void assertApprox()(long actual,
4146+ version (CoreUnittest ) void assertApprox()(long actual,
41474147 long lower,
41484148 long upper,
41494149 string msg = " unittest failure" ,
0 commit comments