From aa111ebed0ef1687455683734896b5854aa1546a Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sun, 25 Dec 2016 13:07:53 +0100 Subject: extfs: add empty label test --- test/fs/extfs_test.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/fs/extfs_test.cpp') diff --git a/test/fs/extfs_test.cpp b/test/fs/extfs_test.cpp index c90e0fa..46149e9 100644 --- a/test/fs/extfs_test.cpp +++ b/test/fs/extfs_test.cpp @@ -17,11 +17,18 @@ void non_open_file_system_has_no_label() ASSERT(!disk.has_label()); } +void non_open_file_system_has_empty_label() + { + auto && disk = fs::extfs{"./THIS_DISK_DOES_NOT_EXIST"}; + ASSERT_EQUAL("", disk.label()); + } + int main(int argc, char * argv[]) { auto tests = cute::suite{ CUTE(construction_with_inexistent_file_creates_extfs_that_is_not_open), CUTE(non_open_file_system_has_no_label), + CUTE(non_open_file_system_has_empty_label) }; cute::xml_file_opener resultFile{argc, argv}; -- cgit v1.2.3