2024-05-29 16:29:08 +10:00
|
|
|
#include <cruft/util/array/parray.hpp>
|
2018-12-17 12:35:45 +11:00
|
|
|
|
2024-05-29 16:29:08 +10:00
|
|
|
#include <cruft/util/tap.hpp>
|
2018-12-17 12:35:45 +11:00
|
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
int
|
|
|
|
main ()
|
|
|
|
{
|
2018-12-17 12:41:01 +11:00
|
|
|
static_assert (is_container_v<cruft::parray<int>>);
|
|
|
|
|
2018-12-17 12:35:45 +11:00
|
|
|
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 ();
|
|
|
|
}
|