version 1.1, Thu Feb 21 11:57:39 2002 UTC | version 1.2, Fri Feb 22 12:03:48 2002 UTC | ||
---|---|---|---|
|
|
||
delete a; delete pat1; delete pat2; | delete a; delete pat1; delete pat2; | ||
} | } | ||
void testShow(){ | void testShow(){ | ||
cout << *pat1 << '\n'; | |||
vector<pixel> ps=pat1->getPixels(10,10); | |||
vector<pixel>::iterator it; | |||
for(it=ps.begin();it!=ps.end();it++){ | |||
cout << '(' << it->first << ',' << it->second << ')'; | |||
} | |||
cout << '\n'; | |||
} | } | ||
void testMatch(){ | void testMatch(){ | ||
CPPUNIT_ASSERT( pat1->isMatch(*a,-1,0) == true ); | CPPUNIT_ASSERT( pat1->isMatch(*a,-1,0) == true ); |
|
ktanaka Powered by ViewCVS 1.0-dev |
ViewCVS and CVS Help |