https://github.com/cvxgrp/scs
Raw File
Tip revision: 6b12f344a104414ee6a1e97dfa3c89399133d76c authored by Brendan O'Donoghue on 20 November 2017, 11:01:35 UTC
rename tic -> scs_tic, toc -> scs_toc, handle_ctrlc -> scs_handle_ctrlc to avoid collisions
Tip revision: 6b12f34
minunit.h
/* Taken from http://www.jera.com/techinfo/jtns/jtn002.html */

/* Simple Macros for testing */
#define mu_assert(message, test)                                               \
  do {                                                                         \
    if (!(test))                                                               \
      return message;                                                          \
  } while (0)
#define mu_run_test(test)                                                      \
  do {                                                                         \
    const char *message = test();                                              \
    tests_run++;                                                               \
    if (message)                                                               \
      return message;                                                          \
  } while (0)
extern int test_run;
back to top