Changeset 362 for trunk/tests/c/test-nom.c
- Timestamp:
- Jun 22, 2008, 5:10:06 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/c/test-nom.c
r331 r362 63 63 #include "bclass.h" 64 64 65 /* For unit test */ 66 #include "nomarray.h" 67 #include "nomstring.h" 68 #include "nommethod.h" 69 #include "nomtestresult.h" 70 #include "testnomobject.h" 71 72 65 73 #define ULONG_TESTVALUE_1 0xffeeddcc 66 74 #define ULONG_TESTVALUE_2 0x55aa1122 … … 210 218 211 219 220 static void printTestResults(NOMArray* nArray) 221 { 222 int a; 223 224 for(a=0; a < NOMArray_length(nArray, NULL) ; a++) 225 { 226 g_message("Test '%s()': %s", _queryString(NOMTestResult_queryName(NOMArray_queryObjectAtIdx(nArray, a, NULL), NULL), NULL), 227 NOMTestResult_success(NOMArray_queryObjectAtIdx(nArray, a, NULL), NULL) ? "Ok" : "Not ok"); 228 } 229 } 230 231 212 232 /** 213 233 Main entry point for the idl compiler. … … 219 239 AClass* aObject; 220 240 BClass* bObject; 241 242 /* Unit test */ 243 NOMArray* nArray; 244 TestNomObject* tstNomObject; 245 int a; 221 246 222 247 #if 0 … … 279 304 tstSetBClassInstanceVar(bObject); 280 305 306 nomPrintf("\n"); 307 g_message("Testing NOMObject"); 308 tstNomObject=TestNomObjectNew(); 309 _setClassMgrObject(tstNomObject, NOMClassMgrObject, NULL); 310 nArray=_runTests(tstNomObject, NULL); 311 printTestResults(nArray); 312 281 313 return 0; 282 314 };
Note:
See TracChangeset
for help on using the changeset viewer.