From 81b0cec887ff4b3d9e48a2696dc32c4a854a4337 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sat, 3 Sep 2022 20:26:38 -0400 Subject: [PATCH] improve death tests --- unittest/commands/test_labelmap.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/unittest/commands/test_labelmap.cpp b/unittest/commands/test_labelmap.cpp index bd4224864a..9ba1e498d7 100644 --- a/unittest/commands/test_labelmap.cpp +++ b/unittest/commands/test_labelmap.cpp @@ -139,8 +139,14 @@ TEST_F(SetTest, NoBoxAtoms) command("labelmap atom 1 C1 2");); TEST_FAILURE(".*ERROR: Incorrect number of arguments for labelmap command.*", command("labelmap atom 1 C1 atom 2 C2");); - TEST_FAILURE(".*ERROR: Incorrect number of arguments for labelmap command.*", + TEST_FAILURE(".*ERROR: Incorrect number of arguments for labelmap clear command.*", command("labelmap clear atom");); + TEST_FAILURE(".*ERROR: Incorrect number of arguments for labelmap clear command.*", + command("labelmap clear atom bond");); + TEST_FAILURE(".*ERROR: Incorrect number of arguments for labelmap write command.*", + command("labelmap write");); + TEST_FAILURE(".*ERROR: Incorrect number of arguments for labelmap write command.*", + command("labelmap write filename xxx");); TEST_FAILURE(".*ERROR: Illegal labelmap atom command: missing argument.*", command("labelmap atom 1");); TEST_FAILURE(".*ERROR: Illegal labelmap atom command: missing argument.*",