libcruft-util/test/types/description.cpp

22 lines
517 B
C++
Raw Normal View History

#include "tap.hpp"
#include "types/description.hpp"
///////////////////////////////////////////////////////////////////////////////
int main ()
{
cruft::TAP::logger tap;
tap.expect_eq (
cruft::types::make_description<int> (),
cruft::types::description {
.category = cruft::types::category::SIGNED,
.width = sizeof (int),
.arity = 1,
.alignment = alignof (int)
},
"description: int"
);
return tap.status ();
}