コード例 #1
0
int main(int, char*[])
{
    test_manip();
    test_manip_with_tag();

    return 0;
}
コード例 #2
0
ファイル: test.c プロジェクト: atantet/gsl
int
main()
{
  gsl_rng *r = gsl_rng_alloc(gsl_rng_default);
  
  test_memcpy(10, 10, r);
  test_memcpy(10, 15, r);
  test_memcpy(53, 213, r);
  test_memcpy(920, 2, r);
  test_memcpy(2, 920, r);

  test_getset(20, 20, r);
  test_getset(30, 20, r);
  test_getset(15, 210, r);

  test_ops(20, 20, r);
  test_ops(50, 20, r);
  test_ops(20, 50, r);
  test_ops(76, 43, r);

  /** Test compresion (spcompress.c) with duplicates and transposition (spswap.c) */
  test_compress(15, 5, 0.2, r);

  /** Test manipulation (spmanip.c)*/
  test_manip(5, 8, 0.2, r);
  
  /** Test tests (spprop.c) */
  test_prop(5, 5, 0.5, 0.5, r);

  /** Test Input/Output */
  //fprintf(stdout, "Testing Input/Output:\nInput matrix (summing duplicate):\n");
  //test_io(stdin, stdout);

  gsl_rng_free(r);

  exit (gsl_test_summary());
} /* main() */