Bug fix if a test function creates a new variable in the module table
commitabfc8d91e75bd7bfd9592b44bedc1fb7c1e1f3d1
authorMichael Roth <mroth@nessie.de>
Tue, 24 Feb 2009 14:44:54 +0000 (24 15:44 +0100)
committerMichael Roth <mroth@nessie.de>
Tue, 24 Feb 2009 14:44:54 +0000 (24 15:44 +0100)
treedc60d5627688566dc5fecb84de865d81978305f8
parent4e9b209477afd348103f59ca80fce43f7da9f2a3
Bug fix if a test function creates a new variable in the module table

When a test function creates new variables in the module table the
next-iterator get confused. This resulted in some tests getting skipped.

The solution is to create copies of test names or test case names
before iterating them.

Thanks to Geoff Richards <qef@ungwe.org> for pointing this out.

Signed-off-by: Michael Roth <mroth@nessie.de>
lunit.lua