aboutsummaryrefslogtreecommitdiff
path: root/src/old/tests/formula.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/old/tests/formula.cpp')
-rw-r--r--src/old/tests/formula.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/old/tests/formula.cpp b/src/old/tests/formula.cpp
new file mode 100644
index 0000000..976b039
--- /dev/null
+++ b/src/old/tests/formula.cpp
@@ -0,0 +1,13 @@
1#include "formula.h"
2
3int main( int argc, char *argv[] )
4{
5 if( argc < 2 ) return 0;
6
7 Formula f;
8 double dOut = f.run( argv[1] );
9 printf("%s = %f\n", argv[1], dOut );
10
11 return 0;
12}
13