/****************************************************
*
* Test program for the propaccumulator.
*
*
*
*
*    WANTED: Content.
*
*
*
* created jul 13 2002, dan {who else?}
*
*****************************************************/

#include <stdio.h>      //printf
#include "propaccum.h"


int main (void) { 
   
  CES_FIELD_TAG temp;
   
  printf("creating proplist\n");
  PropAccum PropList;
  
  printf("setting owner = 1, index = 2, position = 50, type = 4\n");
  if (PropList.Set(1, 2, 50, 4) != 0) {
    printf("success.\n");
  } else {
    printf("failure.\n");
  }
  
  printf("getting values for owner = 1, index = 2\n");
  if (PropList.Get(1, 2, &temp) != NULL) {
    printf("success: result: owner = %ld, index = %ld, position = %ld, type = %ld \n");
  } else {
    printf("unsuccessfull.\n");
  }
  
  printf("resetting values: owner = 1, index = 2, position = 20, type = 7\n");
  if (PropList.Set(1, 2, 20, 7)) {
    printf("success.\n");
  } else {
    printf("failure.\n");
  }
  
  printf("getting values for owner = 1, index = 2\n");
  if (PropList.Get(1, 2, &temp) != NULL) {
    printf("success: result: owner = %ld, index = %ld, position = %ld, type = %ld \n");
  } else {
    printf("unsuccessfull.\n");
  }

  printf("done tests.\n");
  

}




