More flexible input data for analysisdata tests.
authorTeemu Murtola <teemu.murtola@gmail.com>
Sat, 8 Jun 2013 10:29:48 +0000 (13:29 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Mon, 24 Jun 2013 05:11:41 +0000 (07:11 +0200)
commit54919371467da07927088e7b2d7c14f8846a96fb
tree27690b6c250836c5354a7886191c227e2ca4a6af
parent2504ba9a09e197fa34301b28a2f1c97935191c73
More flexible input data for analysisdata tests.

Instead of somewhat inflexible parsing from a static real[] array,
construct the input data objects by explicit method calls to add frames
and point sets.  Convert the existing tests to construct the input data
this way.

Increase coverage of multipoint tests for AnalysisData by using
point sets that do not cover the full range of columns.
Improve test error messages and fix issues found while doing this.

Prerequisite for unit tests for #869 and #1010.

Change-Id: Idd0831d9bbf8e59b6edfab758cd53881133e1f3a
src/gromacs/analysisdata/dataframe.cpp
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/testutils/datatest.cpp
src/testutils/datatest.h
src/testutils/mock_datamodule.cpp