diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-02-25 17:06:44 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-02-25 17:06:44 +0000 |
| commit | d2e8a683eed6fb82d4d255fffaf571ff27057132 (patch) | |
| tree | bea3ed6db13ab6d5a72673aa2c30a55d9e188f03 /test | |
| parent | 03356464b29ff84f72d252efb22502754f55cfce (diff) | |
Plot video and subtitle on one track and audio on the rest in the timeline.
Diffstat (limited to 'test')
| -rw-r--r-- | test/rect_test.cc | 32 | ||||
| -rw-r--r-- | test/wscript | 1 |
2 files changed, 33 insertions, 0 deletions
diff --git a/test/rect_test.cc b/test/rect_test.cc new file mode 100644 index 000000000..b2f70cf89 --- /dev/null +++ b/test/rect_test.cc @@ -0,0 +1,32 @@ +/* + Copyright (C) 2016 Carl Hetherington <cth@carlh.net> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + +#include "lib/rect.h" +#include <boost/test/unit_test.hpp> +#include <iostream> + +using boost::optional; + +BOOST_AUTO_TEST_CASE (rect_test) +{ + dcpomatic::Rect<int> a (0, 0, 100, 100); + dcpomatic::Rect<int> b (200, 200, 100, 100); + optional<dcpomatic::Rect<int> > c = a.intersection (b); + BOOST_CHECK (!c); +} diff --git a/test/wscript b/test/wscript index 5d468f68c..7efe6e61c 100644 --- a/test/wscript +++ b/test/wscript @@ -71,6 +71,7 @@ def build(bld): ratio_test.cc repeat_frame_test.cc recover_test.cc + rect_test.cc reels_test.cc required_disk_space_test.cc resampler_test.cc |
