From d2e8a683eed6fb82d4d255fffaf571ff27057132 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 25 Feb 2016 17:06:44 +0000 Subject: Plot video and subtitle on one track and audio on the rest in the timeline. --- test/rect_test.cc | 32 ++++++++++++++++++++++++++++++++ test/wscript | 1 + 2 files changed, 33 insertions(+) create mode 100644 test/rect_test.cc (limited to 'test') 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 + + 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 +#include + +using boost::optional; + +BOOST_AUTO_TEST_CASE (rect_test) +{ + dcpomatic::Rect a (0, 0, 100, 100); + dcpomatic::Rect b (200, 200, 100, 100); + optional > 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 -- cgit v1.2.3