aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-03-25 21:37:51 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-13 22:40:52 +0100
commit443d35771754821fbcf205005c7f5a632bdfbbd2 (patch)
tree8561f6037eeb7d5e6e36d8dff9c9a5d061234c66 /test
parentdffdab14fb56f2702abdc88c6df769a58e926c9d (diff)
downloadusdx-443d35771754821fbcf205005c7f5a632bdfbbd2.tar.gz
usdx-443d35771754821fbcf205005c7f5a632bdfbbd2.tar.xz
usdx-443d35771754821fbcf205005c7f5a632bdfbbd2.zip
utils/rectangle: could get top/bottom/left/right coordinates from Rectangle
Diffstat (limited to 'test')
-rw-r--r--test/utils/rectangle.cpp4
1 files changed, 2 insertions, 2 deletions
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<int> 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);
}