diff options
Diffstat (limited to 'test/fs')
| -rw-r--r-- | test/fs/extfs_test.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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}; |
