예제 #1
0
int main(int argc, char** argv) {
  (void)argc;
  (void)argv;

  n_tests = running_a_test = failed_tests = 0;

  begin_test("Arithmetic");
  test_arithmetic();

  begin_test("EC point operations");
  test_pointops();

  begin_test("Scalarmul compatibility");
  test_scalarmul_compatibility();

  begin_test("Scalarmul commutativity");
  test_scalarmul_commutativity();

  begin_test("Linear combo");
  test_linear_combo();

  begin_test("Goldilocks complete system");
  test_goldilocks();

  if (running_a_test)
    end_test();
  printf("\n");
  if (failed_tests) {
    printf("Failed %d / %d tests.\n", failed_tests, n_tests);
  } else {
    printf("Passed all %d tests.\n", n_tests);
  }

  return failed_tests ? 1 : 0;
}
예제 #2
0
파일: test_prog_basics.c 프로젝트: 8l/sol
int main(int argc, const char** argv) {
  SVM vm = SVM_INIT;

  test_data(&vm);
  test_arithmetic(&vm);
  test_logic_tests(&vm);
  test_control_flow(&vm);

  return 0;
}
예제 #3
0
int main()
{
    test_bool_vals();
    test_bool_ops();
    test_cmp_ops();
    test_arithmetic();
    test_attr();
    test_param();
    test_compound();
    test_conv();

    return 0;
}
예제 #4
0
파일: integer.c 프로젝트: k0kubun/clannad
int main() {
  test_arithmetic();
  test_not();
  test_factorial();
  test_increment();
  test_decrement();
  test_unary_plus();
  test_unary_minus();
  test_arithmetic_compound_assign();
  test_anti_associativity();
  test_comma_operator();
  test_integer_types();
  return 0;
}
예제 #5
0
int
sc_main( int, char*[] )
{
#if defined(_MSC_VER) && _MSC_VER < 1900
     _set_output_format(_TWO_DIGIT_EXPONENT);
#endif
    test_print();
    test_constructors();
    test_assignment();
    test_conversion();
    test_relational();
    test_arithmetic();
    test_SC_ZERO_TIME();

    return 0;
}