libcruft-util/test/array/parray.cpp

21 lines
419 B
C++
Raw Normal View History

#include <cruft/util/array/parray.hpp>
#include <cruft/util/tap.hpp>
///////////////////////////////////////////////////////////////////////////////
int
main ()
{
static_assert (is_container_v<cruft::parray<int>>);
cruft::TAP::logger tap;
int raw[3] = { -5, 9, 0 };
cruft::parray wrapped (raw);
tap.expect (equal (raw, wrapped), "comparison of array and parray");
return tap.status ();
}