minor tweaks

This commit is contained in:
Axel Kohlmeyer
2021-04-24 07:21:29 -04:00
parent 66f690004d
commit e6f57cdf2c
2 changed files with 4 additions and 1 deletions

View File

@ -96,6 +96,8 @@ TEST_F(DumpCfgTest, write_dump)
ASSERT_EQ(lines.size(), 124); ASSERT_EQ(lines.size(), 124);
ASSERT_THAT(lines[0], Eq("Number of particles = 32")); ASSERT_THAT(lines[0], Eq("Number of particles = 32"));
delete_file("dump_cfg0.melt.cfg"); delete_file("dump_cfg0.melt.cfg");
TEST_FAILURE(".*ERROR: Unrecognized dump style 'xxx'.*", command("write_dump all xxx test.xxx"););
} }
TEST_F(DumpCfgTest, unwrap_run0) TEST_F(DumpCfgTest, unwrap_run0)

View File

@ -257,7 +257,7 @@ TEST_F(FileOperationsTest, write_data)
command("pair_coeff * *"); command("pair_coeff * *");
command("mass * 1.0"); command("mass * 1.0");
command("reset_timestep 333"); command("reset_timestep 333");
command("write_data noinit.data"); command("write_data noinit.data noinit");
command("write_data nocoeff.data nocoeff"); command("write_data nocoeff.data nocoeff");
command("run 0 post no"); command("run 0 post no");
command("write_data test.data"); command("write_data test.data");
@ -283,6 +283,7 @@ TEST_F(FileOperationsTest, write_data)
TEST_FAILURE(".*ERROR: Illegal write_data command.*", command("write_data");); TEST_FAILURE(".*ERROR: Illegal write_data command.*", command("write_data"););
TEST_FAILURE(".*ERROR: Illegal write_data command.*", command("write_data test.data xxxx");); TEST_FAILURE(".*ERROR: Illegal write_data command.*", command("write_data test.data xxxx"););
TEST_FAILURE(".*ERROR: Illegal write_data command.*", command("write_data test.data pair xx"););
TEST_FAILURE(".*ERROR on proc 0: Cannot open data file some_crazy_dir/test.data:" TEST_FAILURE(".*ERROR on proc 0: Cannot open data file some_crazy_dir/test.data:"
" No such file or directory.*", " No such file or directory.*",
command("write_data some_crazy_dir/test.data");); command("write_data some_crazy_dir/test.data"););