Skip to content

Add check bindings

Corentin Noël requested to merge wip/tintou/check into master

A working simple test:

public void test_money_create (int i) {
  Check.tcase_start_function ();
  Check.assert_int_eq (1, 1);
}

Check.Suite money_suite () {
  var s = new Check.Suite ("Money");
  var tc_core = new Check.TCase ("Core");
  tc_core.add_test ((Check.TFun) test_money_create);
  s.add_tcase (tc_core);
  return s;
}

public int main (string[] args) {
    var s = money_suite ();
    var sr = new Check.SRunner (s);
    sr.run_all ();
    return sr.ntests_failed () == 0 ? 0: 1;
}

Merge request reports