diff options
Diffstat (limited to 'tests/small-vector/driver.cxx')
-rw-r--r-- | tests/small-vector/driver.cxx | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/tests/small-vector/driver.cxx b/tests/small-vector/driver.cxx index d79a03b..cc012fc 100644 --- a/tests/small-vector/driver.cxx +++ b/tests/small-vector/driver.cxx @@ -1,24 +1,13 @@ // file : tests/small-vector/driver.cxx -*- C++ -*- // license : MIT; see accompanying LICENSE file -#include <cassert> - -#ifndef __cpp_lib_modules_ts #include <string> #include <iostream> -#endif -// Other includes. +#include <libbutl/small-vector.hxx> -#ifdef __cpp_modules_ts -#ifdef __cpp_lib_modules_ts -import std.core; -import std.io; -#endif -import butl.small_vector; -#else -#include <libbutl/small-vector.mxx> -#endif +#undef NDEBUG +#include <cassert> using namespace std; using namespace butl; @@ -111,6 +100,7 @@ main () s1.emplace_back ("abc"); vector s2 (move (s1)); assert (s2[0] == "abc" && s2.capacity () == 2 && small (s2)); + assert (s1.empty ()); // The source vector must be empty now. } { |