Merge pull request #7441 from Geod24/bugzilla-links

Change all bug ID to links
merged-on-behalf-of: Vladimir Panteleev <CyberShadow@users.noreply.github.com>
This commit is contained in:
The Dlang Bot 2020-04-14 17:42:07 +02:00 committed by GitHub
commit ffca395ed2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
69 changed files with 1248 additions and 912 deletions

View file

@ -337,7 +337,7 @@ if (isInputRange!InputRange && isForwardRange!ForwardRange)
assert(equal(arr, [1, 2, 3, 4, 5, 6, 7]));
}
// Bugzilla 16959
// https://issues.dlang.org/show_bug.cgi?id=16959
auto arr = ['4', '5', '6', '7', '1', '2', '3'];
auto p = bringToFront(arr[0 .. 4], arr[4 .. $]);
@ -507,7 +507,8 @@ $(LINK2 http://en.cppreference.com/w/cpp/algorithm/copy_backward, STL's `copy_ba
assert(a[4 .. 9] == [6, 7, 8, 9, 10]);
}
{ // Test for bug 7898
// https://issues.dlang.org/show_bug.cgi?id=7898
{
enum v =
{
import std.algorithm;
@ -520,9 +521,9 @@ $(LINK2 http://en.cppreference.com/w/cpp/algorithm/copy_backward, STL's `copy_ba
}
}
// https://issues.dlang.org/show_bug.cgi?id=13650
@safe unittest
{
// Issue 13650
import std.meta : AliasSeq;
static foreach (Char; AliasSeq!(char, wchar, dchar))
{{
@ -534,7 +535,8 @@ $(LINK2 http://en.cppreference.com/w/cpp/algorithm/copy_backward, STL's `copy_ba
}}
}
@safe unittest // issue 18804
// https://issues.dlang.org/show_bug.cgi?id=18804
@safe unittest
{
static struct NullSink
{
@ -607,7 +609,8 @@ if ((isInputRange!Range && is(typeof(range.front = value)) ||
assert(a == [ 5, 5, 5, 5 ]);
}
// issue 16342, test fallback on mutable narrow strings
// test fallback on mutable narrow strings
// https://issues.dlang.org/show_bug.cgi?id=16342
@safe unittest
{
char[] chars = ['a', 'b'];
@ -670,7 +673,7 @@ if ((isInputRange!Range && is(typeof(range.front = value)) ||
chars[1 .. 3].fill(':');
assert(chars == "a::d");
}
// end issue 16342
// end https://issues.dlang.org/show_bug.cgi?id=16342
@safe unittest
{
@ -1136,7 +1139,7 @@ pure nothrow @safe @nogc unittest
move(s21, s22);
assert(s21 == s22);
});
// Issue 5661 test(1)
// https://issues.dlang.org/show_bug.cgi?id=5661 test(1)
static struct S3
{
static struct X { int n = 0; ~this(){n = 0;} }
@ -1149,7 +1152,7 @@ pure nothrow @safe @nogc unittest
assert(s31.x.n == 0);
assert(s32.x.n == 1);
// Issue 5661 test(2)
// https://issues.dlang.org/show_bug.cgi?id=5661 test(2)
static struct S4
{
static struct X { int n = 0; this(this){n = 0;} }
@ -1162,7 +1165,7 @@ pure nothrow @safe @nogc unittest
assert(s41.x.n == 0);
assert(s42.x.n == 1);
// Issue 13990 test
// https://issues.dlang.org/show_bug.cgi?id=13990 test
class S5;
S5 s51;
@ -1270,7 +1273,7 @@ private T moveImpl(T)(ref T source)
assert(s21 == s22);
});
// Issue 5661 test(1)
// https://issues.dlang.org/show_bug.cgi?id=5661 test(1)
static struct S3
{
static struct X { int n = 0; ~this(){n = 0;} }
@ -1283,7 +1286,7 @@ private T moveImpl(T)(ref T source)
assert(s31.x.n == 0);
assert(s32.x.n == 1);
// Issue 5661 test(2)
// https://issues.dlang.org/show_bug.cgi?id=5661 test(2)
static struct S4
{
static struct X { int n = 0; this(this){n = 0;} }
@ -1296,7 +1299,7 @@ private T moveImpl(T)(ref T source)
assert(s41.x.n == 0);
assert(s42.x.n == 1);
// Issue 13990 test
// https://issues.dlang.org/show_bug.cgi?id=13990 test
class S5;
S5 s51;
@ -1320,14 +1323,16 @@ private T moveImpl(T)(ref T source)
assert(a.n == 0);
}
@safe unittest//Issue 6217
// https://issues.dlang.org/show_bug.cgi?id=6217
@safe unittest
{
import std.algorithm.iteration : map;
auto x = map!"a"([1,2,3]);
x = move(x);
}
@safe unittest// Issue 8055
// https://issues.dlang.org/show_bug.cgi?id=8055
@safe unittest
{
static struct S
{
@ -1347,7 +1352,8 @@ private T moveImpl(T)(ref T source)
assert(b.x == 0);
}
@system unittest// Issue 8057
// https://issues.dlang.org/show_bug.cgi?id=8057
@system unittest
{
int n = 10;
struct S
@ -1369,7 +1375,7 @@ private T moveImpl(T)(ref T source)
auto b = foo(a);
assert(b.x == 1);
// Regression 8171
// Regression https://issues.dlang.org/show_bug.cgi?id=8171
static struct Array(T)
{
// nested struct has no member
@ -1476,7 +1482,7 @@ pure nothrow @nogc @system unittest
assert(val == 0);
}
// issue 18913
// https://issues.dlang.org/show_bug.cgi?id=18913
@safe unittest
{
static struct NoCopy
@ -1998,7 +2004,7 @@ private auto removeImpl(SwapStrategy s, Range, Offset...)(Range range, Offset of
import std.exception : assertThrown;
import std.range;
// http://d.puremagic.com/issues/show_bug.cgi?id=10173
// https://issues.dlang.org/show_bug.cgi?id=10173
int[] test = iota(0, 10).array();
assertThrown(remove!(SwapStrategy.stable)(test, tuple(2, 4), tuple(1, 3)));
assertThrown(remove!(SwapStrategy.unstable)(test, tuple(2, 4), tuple(1, 3)));
@ -2021,7 +2027,7 @@ private auto removeImpl(SwapStrategy s, Range, Offset...)(Range range, Offset of
a = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ];
assert(remove!(SwapStrategy.unstable)(a, 0, tuple(9, 11)) ==
[ 8, 1, 2, 3, 4, 5, 6, 7 ]);
// http://d.puremagic.com/issues/show_bug.cgi?id=5224
// https://issues.dlang.org/show_bug.cgi?id=5224
a = [ 1, 2, 3, 4 ];
assert(remove!(SwapStrategy.unstable)(a, 2) ==
[ 1, 2, 4 ]);
@ -2042,19 +2048,19 @@ private auto removeImpl(SwapStrategy s, Range, Offset...)(Range range, Offset of
== [0, 9, 8, 7, 4, 5]);
}
// https://issues.dlang.org/show_bug.cgi?id=11576
@safe unittest
{
// Issue 11576
auto arr = [1,2,3];
arr = arr.remove!(SwapStrategy.unstable)(2);
assert(arr == [1,2]);
}
// https://issues.dlang.org/show_bug.cgi?id=12889
@safe unittest
{
import std.range;
// Bug# 12889
int[1][] arr = [[0], [1], [2], [3], [4], [5], [6]];
auto orig = arr.dup;
foreach (i; iota(arr.length))
@ -2913,9 +2919,9 @@ if (isBlitAssignable!T && !is(typeof(lhs.proxySwap(rhs))))
static assert(!__traits(compiles, swap(const1, const2)));
}
// https://issues.dlang.org/show_bug.cgi?id=4789
@safe unittest
{
//Bug# 4789
int[1] s = [1];
swap(s, s);
@ -2953,23 +2959,24 @@ if (isBlitAssignable!T && !is(typeof(lhs.proxySwap(rhs))))
assert(s.i3 == 2);
}
// https://issues.dlang.org/show_bug.cgi?id=11853
@safe unittest
{
//11853
import std.traits : isAssignable;
alias T = Tuple!(int, double);
static assert(isAssignable!T);
}
// https://issues.dlang.org/show_bug.cgi?id=12024
@safe unittest
{
// 12024
import std.datetime;
SysTime a, b;
swap(a, b);
}
@system unittest // 9975
// https://issues.dlang.org/show_bug.cgi?id=9975
@system unittest
{
import std.exception : doesPointTo, mayPointTo;
static struct S2