aboutsummaryrefslogtreecommitdiff
path: root/src/tests/formula.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/tests/formula.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tests/formula.cpp b/src/tests/formula.cpp
index 635d73f..429c306 100644
--- a/src/tests/formula.cpp
+++ b/src/tests/formula.cpp
@@ -9,10 +9,17 @@
9 9
10int main( int argc, char *argv[] ) 10int main( int argc, char *argv[] )
11{ 11{
12 if( argc < 2 )
13 {
14 printf("usage: %s <formula>\n", argv[0] );
15 return -1;
16 }
12 Bu::Formula<uint32_t> uForm; 17 Bu::Formula<uint32_t> uForm;
13 Bu::Formula<double> dForm; 18 Bu::Formula<double> dForm;
14 19
15 printf("u: %s = %u\n", argv[1], uForm.run( argv[1] ) ); 20 printf("u: %s = %u\n", argv[1], uForm.run( argv[1] ) );
16 printf("d: %s = %f\n", argv[1], dForm.run( argv[1] ) ); 21 printf("d: %s = %f\n", argv[1], dForm.run( argv[1] ) );
22
23 return 0;
17} 24}
18 25