diff --git a/test/Makefile.am b/test/Makefile.am index cef55c7c..c8c61763 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -18,6 +18,7 @@ TEST_BIN = \ matrix \ pool \ range \ + region \ signal \ version @@ -56,6 +57,9 @@ pool_SOURCES = pool.cpp range_LDADD = $(builddir)/../libutil.la range_SOURCES = range.cpp +region_LDADD = $(builddir)/../libutil.la +region_SOURCES = region.cpp + signal_LDADD = $(builddir)/../libutil.la signal_SOURCES = signal.cpp diff --git a/test/region.cpp b/test/region.cpp new file mode 100644 index 00000000..408a6e07 --- /dev/null +++ b/test/region.cpp @@ -0,0 +1,15 @@ +#include "../region.hpp" + +using util::region; + +int +main (int, char **) { + { + region a (32.7, -6.09703, 0.8, 2); + region b (33.5, -4.5, 0.5, 0.5); + + check_hard (!a.overlaps (b)); + } + + return 0; +}