add unit tests for lammps_extract_variable()

This commit is contained in:
Axel Kohlmeyer
2024-06-30 18:32:37 -04:00
parent f8a7fc787c
commit d75e66dc71
3 changed files with 222 additions and 0 deletions

View File

@ -157,6 +157,7 @@ TEST_F(VariableTest, CreateDelete)
ASSERT_THAT(variable->retrieve("three"), StrEq("four"));
ASSERT_THAT(variable->retrieve("four2"), StrEq("2"));
ASSERT_THAT(variable->retrieve("five1"), StrEq("001"));
ASSERT_THAT(variable->retrieve("five2"), StrEq("010"));
ASSERT_THAT(variable->retrieve("seven"), StrEq(" 2.00"));
ASSERT_THAT(variable->retrieve("ten"), StrEq("1"));
ASSERT_THAT(variable->retrieve("eight"), StrEq(""));