From c9e19f0f303db3d15f2dcb1185417a4200a29573 Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 15 Jan 2010 09:21:11 +0000 Subject: Added more tests. --- server/src/entitylist.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server/src/entitylist.cc') diff --git a/server/src/entitylist.cc b/server/src/entitylist.cc index 141345d..6964df1 100644 --- a/server/src/entitylist.cc +++ b/server/src/entitylist.cc @@ -294,8 +294,12 @@ TEST_EQUAL_STR(lst.getLatestVersion("test"), _DIR"/file1.xml", "Test"); unlink(_DIR"/file1.xml"); +TEST_EXCEPTION(lst.getLatestVersion("test"), Exception, "Test lookup of missing macro."); + rmdir(_DIR); +TEST_EXCEPTION(lst.getLatestVersion("test"), Exception, "Test lookup in missing folder."); + TEST_END; #endif/*TEST_ENTITYLIST*/ -- cgit v1.2.3