libcruft-util/test/extent.cpp

17 lines
286 B
C++
Raw Normal View History

#include "extent.hpp"
2015-04-13 16:45:56 +10:00
#include "tap.hpp"
int
main (void)
{
2015-04-13 16:45:56 +10:00
util::TAP::logger tap;
{
util::extent2u hi { 8, 4 };
util::extent2u lo { 6, 2 };
tap.expect_eq (lo, hi.contracted (2), "extent scalar contraction by value");
}
return tap.status ();
}