ok    1  dim buf(3): two appends land on 1 and 2, buf(*) reads the last, size stays the capacity
ok    2  the third append fills the last slot
ok    3  a fourth append on dim buf(3) raises SUBOUTBND (no room) and changes nothing
ok    4  reading (*) before any append is SUBOUTBND
ok    5  dim z(0 to 2): the first append lands on z(0)
ok    6  z(0 to 2) holds three appends, the fourth raises
ok    7  fill w with 1, 2, 3 then w(*) = 4 lands on w(4)
ok    8  an indexed write to q(2) moves the cursor: the append lands on q(3)
ok    9  string arrays append the same way
ok    10  redim r(4) after two appends: the next append lands on r(3)
ok    11  redim t(5) of a full array: still full, the append raises
ok    12  dim g(2, 3): four appends fill (1,1) (1,2) (1,3) (2,1); g(*) reads the last
ok    13  six slots used: the seventh append raises SUBOUTBND
ok    14  print g shows the row-major result
ok    15  redim e(2, 3) on four appended items: the next append lands on the 5th slot (2,2)
ok    16  dim x(*) grows without limit (unchanged)
ok    17  k(*) = k(*) + 1 reads the last and appends

passed:  17   failed:  0 
