aboutsummaryrefslogtreecommitdiff
path: root/src/tests/formula.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/formula.cpp')
-rw-r--r--src/tests/formula.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tests/formula.cpp b/src/tests/formula.cpp
new file mode 100644
index 0000000..5237b87
--- /dev/null
+++ b/src/tests/formula.cpp
@@ -0,0 +1,11 @@
1#include "bu/formula.h"
2
3int main( int argc, char *argv[] )
4{
5 Bu::Formula<uint32_t> uForm;
6 Bu::Formula<double> dForm;
7
8 printf("u: %s = %u\n", argv[1], uForm.run( argv[1] ) );
9 printf("d: %s = %f\n", argv[1], dForm.run( argv[1] ) );
10}
11