mirror of
https://github.com/dlang/phobos.git
synced 2025-05-14 17:05:58 +03:00
update makefile
This commit is contained in:
parent
f052f150bd
commit
780c29f18a
9 changed files with 123 additions and 75 deletions
|
@ -33,7 +33,7 @@ in
|
|||
}
|
||||
body
|
||||
{
|
||||
foreach (i; 0 .. a.length)
|
||||
for (int i = 0; i < a.length; i++)
|
||||
a[i] = b[i] + c[i];
|
||||
return a;
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ unittest
|
|||
T[dim] b;
|
||||
T[dim] c;
|
||||
|
||||
foreach (i; 0 .. dim)
|
||||
for (int i = 0; i < dim; i++)
|
||||
{ a[i] = i;
|
||||
b[i] = i + 7;
|
||||
c[i] = i * 2;
|
||||
|
@ -83,7 +83,7 @@ unittest
|
|||
|
||||
c[] = a[] + b[];
|
||||
|
||||
foreach (i; 0 .. dim)
|
||||
for (int i = 0; i < dim; i++)
|
||||
{
|
||||
assert(c[i] == a[i] + b[i]);
|
||||
}
|
||||
|
@ -107,7 +107,7 @@ in
|
|||
}
|
||||
body
|
||||
{
|
||||
foreach (i; 0 .. a.length)
|
||||
for (int i = 0; i < a.length; i++)
|
||||
a[i] = b[i] - c[i];
|
||||
return a;
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ unittest
|
|||
|
||||
c[] = a[] - b[];
|
||||
|
||||
foreach (i; 0 .. c.length)
|
||||
for (int i = 0; i < c.length; i++)
|
||||
{
|
||||
assert(c[i] == a[i] - b[i]);
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ unittest
|
|||
|
||||
c[] = a[] - b[];
|
||||
|
||||
foreach (i; 0 .. c.length)
|
||||
for (int i = 0; i < c.length; i++)
|
||||
{
|
||||
assert(c[i] == a[i] - b[i]);
|
||||
}
|
||||
|
@ -147,7 +147,7 @@ unittest
|
|||
T[dim] b;
|
||||
T[dim] c;
|
||||
|
||||
foreach (i; 0 .. dim)
|
||||
for (int i = 0; i < dim; i++)
|
||||
{ a[i] = i;
|
||||
b[i] = i + 7;
|
||||
c[i] = i * 2;
|
||||
|
@ -155,7 +155,7 @@ unittest
|
|||
|
||||
c[] = a[] - b[];
|
||||
|
||||
foreach (i; 0 .. dim)
|
||||
for (int i = 0; i < dim; i++)
|
||||
{
|
||||
assert(c[i] == a[i] - b[i]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue