more code for array support

This commit is contained in:
2020-04-24 17:27:56 +00:00
parent 1b7ef41ee4
commit 70f759b140
7 changed files with 228 additions and 168 deletions

View File

@ -61,5 +61,17 @@ function main()
ensure (b[2], "perfect", SCRIPTNAME);
}
{
@local a;
a[1] = hawk::array();
a[1][2]=20;
ensure (a[1][2], 20, SCRIPTNAME);
a[1][2]++;
ensure (a[1][2], 21, SCRIPTNAME);
--a[1][2];
ensure (a[1][2], 20, SCRIPTNAME);
}
print "SUCCESS"
}