blob: 4a5e1b542f6092fd86479f7860041f6c9bc448bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "fs/extfs.hpp"
#include <cute/cute.h>
#include <cute/cute_runner.h>
#include <cute/ostream_listener.h>
#include <cute/xml_listener.h>
void construction_with_inexistent_file_creates_extfs_that_is_not_open()
{
auto && disk = fs::extfs{"./THIS_DISK_DOES_NOT_EXIST"};
ASSERT(!disk.open());
}
int main(int argc, char * argv[])
{
auto tests = cute::suite{
CUTE(construction_with_inexistent_file_creates_extfs_that_is_not_open),
};
cute::xml_file_opener resultFile{argc, argv};
cute::xml_listener<cute::ostream_listener<>> listener{resultFile.out};
return !cute::makeRunner(listener, argc, argv)(tests, "fs::extfs tests");
}
|