2015-02-13 17:32:31 +11:00
|
|
|
#include "extent.hpp"
|
2015-04-13 16:45:56 +10:00
|
|
|
#include "tap.hpp"
|
2015-02-13 17:32:31 +11:00
|
|
|
|
|
|
|
int
|
|
|
|
main (void)
|
|
|
|
{
|
2015-04-13 16:45:56 +10:00
|
|
|
util::TAP::logger tap;
|
2015-09-22 17:23:54 +10:00
|
|
|
|
|
|
|
{
|
|
|
|
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 ();
|
2015-02-13 17:32:31 +11:00
|
|
|
}
|