text: //Writen by TjarkG and published under the MIT License
  
  #include <stdio.h>
  #include <assert.h>
  #include <stdbool.h>
  #include "ArrayMath.h"
  
  
  void fprintArray(FILE *ofp, int *in, size_t nMemb);
  
  int main(int argc, char const *argv[])
  {
      const int test1[5] = {1,2,4,5,6};
      const unsigned int test2[5] = {5,6,7,8,9};
      int out[5];
      arrayMath(out, test1, test2, memb(test1), Add);
      assert(out[0] == 6 && out[1] == 8);
      arrayMath(out, test1, 0, memb(test1), BinNot);
      assert(out[4] == ~test1[4]);
      assert(arraySum(test1, memb(test1)) == 18);
      assert(arrayBool(test1, test2, memb(test1), IsLess) == true);
      assert(arrayBool(test1, test2, memb(test1), IsEqual) == false);
      assert(arrayBoolAC(test1, 6, memb(test1), IsLessEqual) == true);
      setArray(out, idx+2);
      assert(out[4] == 6);
      return 0;
  }
  
  //print conntent of IN to OFP
  void fprintArray(FILE *ofp, int *in, size_t nMemb)
  {
      for(unsigned long i=0; i<nMemb-1; i++)
      {
          fprintf(ofp, "%d,", in[i]);
      }
      fprintf(ofp, "%d", in[nMemb-1]);
  }