Changeset 19539 for trunk/psLib/test/types
- Timestamp:
- Sep 12, 2008, 12:36:29 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/types/tap_psPixels_all.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/types/tap_psPixels_all.c
r17515 r19539 51 51 } 52 52 //Make sure psMemCheckPixels works correctly - return false 53 // XXX EAM : disabled -- failing test causes segfault 53 // XXX EAM : disabled -- failing test causes segfault 54 54 if (0) { 55 55 int j = 2; … … 349 349 { 350 350 psMemId id = psMemGetId(); 351 psPixels *outPixels = psPixelsAlloc( 5);351 psPixels *outPixels = psPixelsAlloc(6); 352 352 in.x = 1.0; 353 353 in.y = 1.0; … … 360 360 in.x = 2.0; 361 361 psPixelsSet(outPixels, 4, in); //2, 1 362 psPixels *testPixels = psPixelsAlloc(6); 362 in.y = 2.0; 363 psPixelsSet(outPixels, 5, in); //2, 2 364 psPixels *testPixels = psPixelsAlloc(7); 363 365 in.x = 1.0; 364 366 in.y = 1.0; … … 370 372 in.x = 2.0; 371 373 psPixelsSet(testPixels, 3, in); //2, 1 374 in.y = 2.0; 375 psPixelsSet(testPixels, 4, in); //2, 2 372 376 in.x = 1.0; 373 psPixelsSet(testPixels, 4, in); //1, 1377 psPixelsSet(testPixels, 5, in); //1, 2 374 378 in.x = 5.0; 375 379 in.y = 3.0; 376 psPixelsSet(testPixels, 5, in); //5, 3380 psPixelsSet(testPixels, 6, in); //5, 3 377 381 outPixels = psPixelsConcatenate(outPixels, testPixels); 378 ok(outPixels->n == 6, "psPixelsConcatenate: return properly concatenate pixel list for valid inputs."); 382 outPixels = psPixelsDuplicates(outPixels, outPixels); 383 // Should be 5 entries: (1,1) (2,1) (1,2) (2,2) (5,3) 384 ok(outPixels->n == 5, "psPixelsConcatenate: return properly concatenate pixel list for valid inputs."); 379 385 psFree(testPixels); 380 386 psFree(outPixels);
Note:
See TracChangeset
for help on using the changeset viewer.
