[opengtl-commits] [195] testing affectation of value to region |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 195
Author: cyrille
Date: 2008-06-14 11:18:44 +0200 (Sat, 14 Jun 2008)
Log Message:
-----------
testing affectation of value to region
Modified Paths:
--------------
trunk/OpenGTL/OpenShiva/tests/structures/region.shiva
Modified: trunk/OpenGTL/OpenShiva/tests/structures/region.shiva
===================================================================
--- trunk/OpenGTL/OpenShiva/tests/structures/region.shiva 2008-06-14 09:16:02 UTC (rev 194)
+++ trunk/OpenGTL/OpenShiva/tests/structures/region.shiva 2008-06-14 09:18:44 UTC (rev 195)
@@ -2,10 +2,16 @@
{
int runTest()
{
-// region r;
-// region r2;
-// r.union(r2);
-// r.intersect(r2);
- return 0;
+ int count = 0;
+ region r;
+ r.x = 2;
+ r.y = 4;
+ r.width = 10;
+ r.height = 20;
+ if( r.x != 2 ) ++count;
+ if( r.y != 4 ) ++count;
+ if( r.width != 10 ) ++count;
+ if( r.height != 20 ) ++count;
+ return count;
}
}