/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2016,2017,2018,2019, by the GROMACS development team, led by
+ * Copyright (c) 2016,2017,2018,2019,2020, 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.
ASSERT_TRUE(warning_errors_exist(wi_));
}
+TEST_F(ReadTest, setStringEntry_ReturnsCorrectString)
+{
+ const std::string name = "name";
+ const std::string definition = "definition";
+ const std::string returnValue = setStringEntry(&inputField_, name, definition);
+ // The definition should be returned
+ EXPECT_EQ(returnValue, definition);
+ // The name should not be returned
+ EXPECT_NE(returnValue, name);
+}
+
} // namespace testing
} // namespace gmx