/[ascend]/trunk/base/generic/general/test/test_stack.c
ViewVC logotype

Diff of /trunk/base/generic/general/test/test_stack.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 538 by johnpye, Fri Mar 31 08:52:57 2006 UTC revision 539 by johnpye, Tue Apr 25 23:11:59 2006 UTC
# Line 26  Line 26 
26  #include <stdarg.h>  #include <stdarg.h>
27  #include <utilities/ascConfig.h>  #include <utilities/ascConfig.h>
28  #include <utilities/ascMalloc.h>  #include <utilities/ascMalloc.h>
 #include <utilities/ascPrintType.h>  
29  #include <utilities/ascPrint.h>  #include <utilities/ascPrint.h>
30  #include <general/stack.h>  #include <general/stack.h>
31  #include "CUnit/CUnit.h"  #include "CUnit/CUnit.h"
# Line 297  static void test_stack(void) Line 296  static void test_stack(void)
296    for (i=0 ; i<10 ; ++i) {    for (i=0 ; i<10 ; ++i) {
297      gs_stack_push(p_stack1, pint_array[i]);      gs_stack_push(p_stack1, pint_array[i]);
298    }    }
299                                                                                      
300    gs_stack_clear(p_stack1);             /* reset the stack */    gs_stack_clear(p_stack1);             /* reset the stack */
301    CU_TEST(0 == gs_stack_size(p_stack1));    CU_TEST(0 == gs_stack_size(p_stack1));
302  #ifdef MALLOC_DEBUG  #ifdef MALLOC_DEBUG

Legend:
Removed from v.538  
changed lines
  Added in v.539

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22