diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2016-12-25 13:07:53 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2016-12-25 13:07:53 +0100 |
| commit | aa111ebed0ef1687455683734896b5854aa1546a (patch) | |
| tree | 6251366f943c50f65290cd5d9155044a9e19e08f /test/fs/extfs_test.cpp | |
| parent | f9305ef01cf402651b12b3f068f30cc8c2af65e9 (diff) | |
| download | extfs-aa111ebed0ef1687455683734896b5854aa1546a.tar.xz extfs-aa111ebed0ef1687455683734896b5854aa1546a.zip | |
extfs: add empty label test
Diffstat (limited to 'test/fs/extfs_test.cpp')
| -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}; |
