Remove explicit end-of-array markers from tests.
authorTeemu Murtola <teemu.murtola@gmail.com>
Mon, 15 Oct 2012 07:45:06 +0000 (10:45 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Mon, 15 Oct 2012 15:13:32 +0000 (18:13 +0300)
commitf8a501e2eea2a3acde3d35c1336f10ef34527e51
tree329a1737e564c4f5ee44cbe0ecda0ae5afacf39a
parent5eb1a00cfe8ef39c03fc631eb7d6d27ebb9d4175
Remove explicit end-of-array markers from tests.

Instead of using NULL- or otherwise terminated arrays as input to test
functions, use a template wrapper for the functions that take these
arrays to allow the compiler to pass the declared size of the array.
This is safer, as with this approach it is not possible to forget the
terminator.

Change-Id: I7cdb91c055d9026dabebcd9adc657a66fb9a99c3
src/gromacs/analysisdata/tests/analysisdata.cpp
src/gromacs/analysisdata/tests/arraydata.cpp
src/gromacs/analysisdata/tests/average.cpp
src/gromacs/analysisdata/tests/histogram.cpp
src/gromacs/selection/tests/selectioncollection.cpp
src/testutils/datatest.cpp
src/testutils/datatest.h