support that LAMMPS_POTENTIALS is a real path variable with multiple entries, not just a single folder

This commit is contained in:
Axel Kohlmeyer
2020-08-29 22:09:07 -04:00
parent 05ff352021
commit 5a22f4d7f2
3 changed files with 35 additions and 13 deletions

View File

@ -62,6 +62,15 @@ TEST(Tokenizer, iterate_words)
ASSERT_EQ(t.count(), 2);
}
TEST(Tokenizer, no_separator_path)
{
Tokenizer t("one", ":");
ASSERT_EQ(t.has_next(), true);
ASSERT_EQ(t.count(), 1);
ASSERT_THAT(t.next(), Eq("one"));
ASSERT_EQ(t.has_next(), false);
}
TEST(Tokenizer, unix_paths)
{
Tokenizer t(":one:two:three:", ":");