diff options
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index cd38438..50b143e 100644 --- a/src/main.cpp +++ b/src/main.cpp | |||
| @@ -11,10 +11,18 @@ | |||
| 11 | #include <bu/streamstack.h> | 11 | #include <bu/streamstack.h> |
| 12 | using namespace Bu; | 12 | using namespace Bu; |
| 13 | 13 | ||
| 14 | #define mathTestP( sc, anum, op, bnum, answ ) \ | ||
| 15 | Bu::println(">>%1<<").arg((Number(anum, sc) op Number(bnum, sc)).toString()) | ||
| 16 | |||
| 14 | int main( int argc, char *argv[] ) | 17 | int main( int argc, char *argv[] ) |
| 15 | { | 18 | { |
| 16 | try | 19 | try |
| 17 | { | 20 | { |
| 21 | mathTestP( 5, "63.6", /, "504", "0.12619" ); | ||
| 22 | mathTestP( 5, "63.61", /, "504", "0.12621" ); | ||
| 23 | mathTestP( 7, "63.610123", /, "5041", "0.12621" ); | ||
| 24 | mathTestP( 7, "63.610123", /, "50412", "0.12621" ); | ||
| 25 | // return 0; | ||
| 18 | Options opt( argc, argv ); | 26 | Options opt( argc, argv ); |
| 19 | 27 | ||
| 20 | println("CliC - 0.08"); | 28 | println("CliC - 0.08"); |
