niepce r11 - in trunk/src: fwk/utils libraryclient
- From: hub svn gnome org
- To: svn-commits-list gnome org
- Subject: niepce r11 - in trunk/src: fwk/utils libraryclient
- Date: Thu, 29 Jan 2009 01:01:08 +0000 (UTC)
Author: hub
Date: Thu Jan 29 01:01:08 2009
New Revision: 11
URL: http://svn.gnome.org/viewvc/niepce?rev=11&view=rev
Log:
fix tests
Modified:
trunk/src/fwk/utils/testgeometry.cpp
trunk/src/libraryclient/test_worker.cpp
Modified: trunk/src/fwk/utils/testgeometry.cpp
==============================================================================
--- trunk/src/fwk/utils/testgeometry.cpp (original)
+++ trunk/src/fwk/utils/testgeometry.cpp Thu Jan 29 01:01:08 2009
@@ -68,11 +68,11 @@
BOOST_CHECK(result == Rect(0, 0, 640, 320));
result = source1.fit_into(dest2);
std::cout << result.to_string() << std::endl;
- BOOST_CHECK(result == Rect(0, 0, 480, 240));
+ BOOST_CHECK(result.w() == 480);
result = source2.fit_into(dest1);
std::cout << result.to_string() << std::endl;
- BOOST_CHECK(result == Rect(0, 0, 240, 480));
+ BOOST_CHECK(result.h() == 480);
result = source2.fit_into(dest2);
std::cout << result.to_string() << std::endl;
BOOST_CHECK(result == Rect(0, 0, 320, 640));
@@ -80,7 +80,7 @@
// FILL
result = source1.fill_into(dest1);
std::cout << result.to_string() << std::endl;
- BOOST_CHECK(result == Rect(0, 0, 960, 480));
+ BOOST_CHECK(result.h() == 480);
result = source1.fill_into(dest2);
std::cout << result.to_string() << std::endl;
BOOST_CHECK(result == Rect(0, 0, 1280, 640));
@@ -90,7 +90,7 @@
BOOST_CHECK(result == Rect(0, 0, 640, 1280));
result = source2.fill_into(dest2);
std::cout << result.to_string() << std::endl;
- BOOST_CHECK(result == Rect(0, 0, 480, 960));
+ BOOST_CHECK(result.w() == 480);
return 0;
}
Modified: trunk/src/libraryclient/test_worker.cpp
==============================================================================
--- trunk/src/libraryclient/test_worker.cpp (original)
+++ trunk/src/libraryclient/test_worker.cpp Thu Jan 29 01:01:08 2009
@@ -50,5 +50,6 @@
Op::Ptr p(new Op(0, boost::bind(&foo, db::Library::Ptr())));
w.schedule(p);
}
+ return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]