Add simple region overlap testcase
This commit is contained in:
parent
f4ab656ef1
commit
4dc7a3ca49
@ -18,6 +18,7 @@ TEST_BIN = \
|
|||||||
matrix \
|
matrix \
|
||||||
pool \
|
pool \
|
||||||
range \
|
range \
|
||||||
|
region \
|
||||||
signal \
|
signal \
|
||||||
version
|
version
|
||||||
|
|
||||||
@ -56,6 +57,9 @@ pool_SOURCES = pool.cpp
|
|||||||
range_LDADD = $(builddir)/../libutil.la
|
range_LDADD = $(builddir)/../libutil.la
|
||||||
range_SOURCES = range.cpp
|
range_SOURCES = range.cpp
|
||||||
|
|
||||||
|
region_LDADD = $(builddir)/../libutil.la
|
||||||
|
region_SOURCES = region.cpp
|
||||||
|
|
||||||
signal_LDADD = $(builddir)/../libutil.la
|
signal_LDADD = $(builddir)/../libutil.la
|
||||||
signal_SOURCES = signal.cpp
|
signal_SOURCES = signal.cpp
|
||||||
|
|
||||||
|
15
test/region.cpp
Normal file
15
test/region.cpp
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#include "../region.hpp"
|
||||||
|
|
||||||
|
using util::region;
|
||||||
|
|
||||||
|
int
|
||||||
|
main (int, char **) {
|
||||||
|
{
|
||||||
|
region<double> a (32.7, -6.09703, 0.8, 2);
|
||||||
|
region<double> b (33.5, -4.5, 0.5, 0.5);
|
||||||
|
|
||||||
|
check_hard (!a.overlaps (b));
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user