submission/reference/test.c
int test(t_order orders[], unsigned orders_len, t_execution execs[], unsigned execs_len) {
  int ok = 1;
  set_globals();
  init();
  ok = ok && feed_orders(orders, orders_len);
  ok = ok && assert_exec_count(execs_len);
  ok = ok && assert_execs(execs, execs_len);
  destroy();
  if (!ok) printf("test %i failed.\n\n", totaltests);
  return ok;
}
/* IN: orders: sequence of orders
   OUT: points received on test */
sequence of orders
OUT: points received on test
sequence of orders OUT : points received on test
int test(t_order orders[], unsigned orders_len, t_execution execs[], unsigned execs_len) {
  int ok = 1;
  set_globals();
  init();
  ok = ok && feed_orders(orders, orders_len);
  ok = ok && assert_exec_count(execs_len);
  ok = ok && assert_execs(execs, execs_len);
  destroy();
  if (!ok) printf("test %i failed.\n\n", totaltests);
  return ok;
}
int test ( t_order orders [ ] , unsigned orders_len , t_execution execs [ ] , unsigned execs_len ) { int ok = 1 ; set_globals ( ) ; init ( ) ; ok = ok && feed_orders ( orders , orders_len ) ; ok = ok && assert_exec_count ( execs_len ) ; ok = ok && assert_execs ( execs , execs_len ) ; destroy ( ) ; if ( ! ok ) printf ( " \n \n " , totaltests ) ; return ok ; }
IN: orders: sequence of orders
OUT: points received on test
IN : orders : sequence of orders OUT : points received on test