io: test that mapped_file satisfies is_container_v

This commit is contained in:
Danny Robson 2018-12-17 12:42:22 +11:00
parent b4c8190054
commit 825d359b9d
2 changed files with 14 additions and 0 deletions

View File

@ -558,6 +558,7 @@ if (TESTS)
hash/siphash hash/siphash
hash/xxhash hash/xxhash
hton hton
io
introspection introspection
iterator iterator
job/queue job/queue

13
test/io.cpp Normal file
View File

@ -0,0 +1,13 @@
#include "tap.hpp"
#include "io.hpp"
#include "types/traits.hpp"
///////////////////////////////////////////////////////////////////////////////
int main ()
{
cruft::TAP::logger tap;
tap.expect (is_container_v<cruft::mapped_file>, "mapped_file is a container");
return tap.status ();
}