Exemple #1
0
int
main ()
{
  u32int x;
  u64int y;
  x = test_si (7, 8, 12, 15);
  if (x != -2)
    abort();
  y = test_di (0x987654321ll, 0x123456789ll, 0x345345345ll, 0x123123123ll);
  if (y != 0x8641fdb98ll)
    abort();
  return 0;
}
Exemple #2
0
/**
    Run all tests on format library.
**/
static void run_tests( void )
{
    test();
    test_pc();
    test_cC();
    test_n();
    test_s();
    test_p();
    test_di();
    test_bouxX();
    test_eEfFgG();
    test_asterisk();
    test_cont();

    printf( "-----------------------\n"
            "Overall: %s\n", f ? "FAIL" : "PASS" );
}
Exemple #3
0
/**
    Run all tests on format library.
**/
static void run_tests( void )
{
    test();
    test_pc();
    test_cC();
    test_n();
    test_s();
    test_p();
    test_di();
    test_bouxX();
    test_eEfFgG();
    test_k();
    test_asterisk();
    test_cont();

    printf( "-----------------------\n"
            "Summary: %s (%u failures)\n", f ? "FAIL" : "PASS", f );
}