From 443d35771754821fbcf205005c7f5a632bdfbbd2 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sun, 25 Mar 2012 21:37:51 +0200 Subject: utils/rectangle: could get top/bottom/left/right coordinates from Rectangle --- test/utils/rectangle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/utils/rectangle.cpp b/test/utils/rectangle.cpp index 0cfbece2..343d442f 100644 --- a/test/utils/rectangle.cpp +++ b/test/utils/rectangle.cpp @@ -54,8 +54,8 @@ namespace usdx int coords[] = { 100, 150, 200, 250 }; Rectangle rect(coords); - CPPUNIT_ASSERT(rect.get_x() == 100); - CPPUNIT_ASSERT(rect.get_y() == 150); + CPPUNIT_ASSERT(rect.get_left() == 100); + CPPUNIT_ASSERT(rect.get_top() == 150); CPPUNIT_ASSERT(rect.get_width() == 200); CPPUNIT_ASSERT(rect.get_height() == 250); } -- cgit v1.2.3