source: git/factory/ftest/commonden.m4 @ a40e7b

spielwiese
Last change on this file since a40e7b was b95d8f8, checked in by Jens Schmidt <schmidt@…>, 26 years ago
Initial revision git-svn-id: file:///usr/local/Singular/svn/trunk@1211 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.0 KB
Line 
1/* emacs edit mode for this file is -*- C++ -*- */
2/* $Id: commonden.m4,v 1.1 1998-03-11 18:34:15 schmidt Exp $ */
3
4ftestSetNameOfGame( commonden, `"
5Usage: commonden [<options>] [<envSpec>] <f>
6  returns common denominator of canonical form <f>.
7"'`' )
8
9//{{{ docu
10//
11// ftestAlgorithm.m4 - ftestAlgorithm test program.
12//
13// To create ftestAlgorithm.cc, run m4 using the ftest_util.m4 library in
14// the following way:
15//
16// m4 ftest_util.m4 ftestAlgorithm.m4 > ftestAlgorithm.cc
17//
18//}}}
19
20ftestPreprocInit();
21
22ftestGlobalInit();
23
24//
25// - main program.
26//
27int
28main ( int argc, char ** argv )
29{
30    // initialization
31    ftestMainInit();
32
33    // declare input and output variables
34    ftestOutVar( CanonicalForm, result );
35    ftestInVar( CanonicalForm, f );
36
37    // process argument list and set environment
38    ftestGetOpts();
39    ftestGetEnv();
40    ftestGetInVar( f );
41
42    // do the test!
43    ftestRun(
44        result = bCommonDen( f ); );
45
46    // print results
47    ftestOutput( "bCommonDen(f)", result );
48
49    // clean up
50    ftestMainExit();
51}
Note: See TracBrowser for help on using the repository browser.