diff options
Diffstat (limited to 'ept/axi/axi-test.cc')
-rw-r--r-- | ept/axi/axi-test.cc | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/ept/axi/axi-test.cc b/ept/axi/axi-test.cc new file mode 100644 index 0000000..3e39b19 --- /dev/null +++ b/ept/axi/axi-test.cc @@ -0,0 +1,30 @@ +#include "ept/test.h" +#include "axi.h" +#include "ept/apt/apt.h" +#include "ept/utils/sys.h" +#include <set> + +using namespace ept::tests; +using namespace std; +using namespace ept; + +namespace { + +class Tests : public TestCase +{ + using TestCase::TestCase; + + void register_tests() override + { + add_method("empty", []() { + // Access an empty index + sys::mkdir_ifmissing("xapian", 0755); + apt::Apt apt; + axi::OverrideIndexDir oid("./empty"); + wassert(actual(axi::timestamp()) == 0); + sys::rmdir("xapian"); + }); + } +} tests("axi"); + +} |