From 6e106a2cc52e3857cbd55d67d54b4589f3425c51 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sat, 20 Oct 2007 20:51:59 +0000 Subject: Made the logger use a uint32_t for it's mask, no more negative confusion. Also brought back the formula class with some cool twists, and added a basic stack class, very cute, fast, and little. --- src/tests/formula.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/tests/formula.cpp (limited to 'src/tests/formula.cpp') 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 @@ +#include "bu/formula.h" + +int main( int argc, char *argv[] ) +{ + Bu::Formula uForm; + Bu::Formula dForm; + + printf("u: %s = %u\n", argv[1], uForm.run( argv[1] ) ); + printf("d: %s = %f\n", argv[1], dForm.run( argv[1] ) ); +} + -- cgit v1.2.3