/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2013, by the GROMACS development team, led by
- * David van der Spoel, Berk Hess, Erik Lindahl, and including many
- * others, as listed in the AUTHORS file in the top-level source
- * directory and at http://www.gromacs.org.
+ * Copyright (c) 2013,2014, by the GROMACS development team, led by
+ * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
+ * and including many others, as listed in the AUTHORS file in the
+ * top-level source directory and at http://www.gromacs.org.
*
* GROMACS is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* \author Teemu Murtola <teemu.murtola@gmail.com>
* \ingroup module_selection
*/
-#include <gtest/gtest.h>
-
-#include "gromacs/legacyheaders/typedefs.h"
+#include "gmxpre.h"
#include "gromacs/selection/indexutil.h"
+#include <gtest/gtest.h>
+
+#include "gromacs/topology/block.h"
+
#include "testutils/refdata.h"
#include "toputils.h"
void IndexMapTest::checkMapping(int atomCount, const int atoms[],
const char *name)
{
- ASSERT_EQ(map_.nr, map_.mapb.nr);
gmx::test::TestReferenceChecker compound(
checker_.checkCompound("IndexMapping", name));
compound.checkSequenceArray(atomCount, atoms, "Input");
- compound.checkInteger(map_.nr, "Count");
- for (int i = 0; i < map_.nr; ++i)
+ compound.checkInteger(map_.mapb.nr, "Count");
+ for (int i = 0; i < map_.mapb.nr; ++i)
{
gmx::test::TestReferenceChecker blockCompound(
compound.checkCompound("Block", NULL));