aboutsummaryrefslogtreecommitdiff
path: root/src/tests/formula.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2008-09-24 03:22:58 +0000
committerMike Buland <eichlan@xagasoft.com>2008-09-24 03:22:58 +0000
commit0975d66d2f06603f5e4016440b333aac88e2958a (patch)
treecd3767fb74c2475fd78bca9ff2d3ba825dd329f4 /src/tests/formula.cpp
parent17df4c2b9616c29865b0d893cc797d4938a660a2 (diff)
downloadlibbu++-0975d66d2f06603f5e4016440b333aac88e2958a.tar.gz
libbu++-0975d66d2f06603f5e4016440b333aac88e2958a.tar.bz2
libbu++-0975d66d2f06603f5e4016440b333aac88e2958a.tar.xz
libbu++-0975d66d2f06603f5e4016440b333aac88e2958a.zip
Ok, now all the warnings are gone (except for those coming from nids, but that's
ok, nids is still in flux, they'll be gone soon).
Diffstat (limited to 'src/tests/formula.cpp')
-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