Follow-up Comment #2, bug #25390 (project wesnoth):
Ohh. It feels really weird thinking about it that way rather than how
FOREACH does it, but it's literally just like:
for(int i = 1; i <= 2; i++)
My first thought when reading it was "I'm looping over an array, so I should
use the array
Follow-up Comment #1, bug #25390 (project wesnoth):
The array and start/end/step attributes are intended to be mutually exclusive,
as documented on the wiki. In effect, the array attribute is a shorthand.
If you simply remove array=test from that example, it should work.