mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
cellarray test had old ArrayGetCell syntax, oops
This commit is contained in:
parent
9348f9931e
commit
a726b796db
@ -111,7 +111,7 @@ public arraytest1()
|
||||
for (new i=0; i<1000; i++)
|
||||
{
|
||||
f=float(i);
|
||||
ArrayGetCell(a,i,r);
|
||||
r=Float:ArrayGetCell(a, i);
|
||||
|
||||
// This is normally bad for float "casting", but in this case it should be fine.
|
||||
test(_:f, _:r);
|
||||
@ -123,7 +123,7 @@ public arraytest1()
|
||||
|
||||
ArraySetCell(a, i, g);
|
||||
|
||||
ArrayGetCell(a,i,r);
|
||||
r=Float:ArrayGetCell(a,i);
|
||||
|
||||
test(g, _:r);
|
||||
|
||||
@ -318,7 +318,7 @@ public arraytest5()
|
||||
test(ArraySize(a), 500);
|
||||
for (new i=0; i< 500; i++)
|
||||
{
|
||||
ArrayGetCell(a, i, v);
|
||||
v=ArrayGetCell(a, i);
|
||||
|
||||
// All items should be incrementing odd numbers
|
||||
test(((i + 1) * 2) - 1, v);
|
||||
@ -344,7 +344,7 @@ public arraytest5()
|
||||
test(ArraySize(a), 500);
|
||||
for (new i=0; i< 500; i++)
|
||||
{
|
||||
ArrayGetCell(a, i, v);
|
||||
v=ArrayGetCell(a, i);
|
||||
|
||||
// All items should be incrementing even numbers
|
||||
test(((i + 1) * 2) - 2, v);
|
||||
@ -377,12 +377,12 @@ public arraytest6()
|
||||
new v;
|
||||
for (new i=0; i<110; i++)
|
||||
{
|
||||
ArrayGetCell(a, i, v);
|
||||
v=ArrayGetCell(a, i);
|
||||
|
||||
test(v, i / 10);
|
||||
for (new j=0; j<10; j++)
|
||||
{
|
||||
ArrayGetCell(a, ++i, v);
|
||||
v=ArrayGetCell(a, ++i);
|
||||
test(v, j);
|
||||
}
|
||||
}
|
||||
@ -415,11 +415,11 @@ public arraytest7()
|
||||
{
|
||||
for (new j=9; j>=0; j--)
|
||||
{
|
||||
ArrayGetCell(a, i++, v);
|
||||
v=ArrayGetCell(a, i++);
|
||||
test(v, j);
|
||||
}
|
||||
|
||||
ArrayGetCell(a, i, v);
|
||||
v=ArrayGetCell(a, i);
|
||||
|
||||
test(v, (i - 10) / 10);
|
||||
}
|
||||
@ -445,7 +445,7 @@ public arraytest8()
|
||||
new v;
|
||||
for (new i=0; i<5; i++)
|
||||
{
|
||||
ArrayGetCell(a, i, v);
|
||||
v=ArrayGetCell(a, i);
|
||||
|
||||
test(v, (10 - (i + 1)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user