Add unit test coverage for simple selection keywords.
authorTeemu Murtola <teemu.murtola@gmail.com>
Tue, 30 Apr 2013 03:51:34 +0000 (06:51 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Sun, 4 Aug 2013 19:45:34 +0000 (21:45 +0200)
commitdecc828ab7b056e47ef4e6b5b699282ee9967ba1
tree04b718d7ffe7c82d6ceeb5d89127f46b8ceab4dd
parent564ac7688c684a95ea6825213ec31c492b9f9808
Add unit test coverage for simple selection keywords.

"molindex" and "atomtype" keywords are now covered by separate tests.
Also updated one test to use the "z" keyword to have that covered.
Added a comment in sm_simple.cpp about unreachable code that is not
currently covered by tests.

Part of #651.

Change-Id: Id9ac9ea8e7d144214537265d9ed89335684934f1
src/gromacs/gmxlib/typedefs.c
src/gromacs/selection/sm_simple.cpp
src/gromacs/selection/tests/refdata/SelectionCollectionDataTest_HandlesAtomtype.xml [new file with mode: 0644]
src/gromacs/selection/tests/refdata/SelectionCollectionDataTest_HandlesDynamicAtomValuedParameters.xml
src/gromacs/selection/tests/refdata/SelectionCollectionDataTest_HandlesMolIndex.xml [new file with mode: 0644]
src/gromacs/selection/tests/selectioncollection.cpp
src/gromacs/selection/tests/toputils.cpp
src/gromacs/selection/tests/toputils.h