summaryrefslogtreecommitdiff
path: root/src/unitnumber.cpp
diff options
context:
space:
mode:
authorMike Buland <mike@xagasoft.com>2014-11-28 13:45:37 -0700
committerMike Buland <mike@xagasoft.com>2014-11-28 13:45:37 -0700
commit9f7cbe624a91008a4cbe47c7b369c5e3f96a4eff (patch)
tree561bd5cb20d17c0c5e5289763d140e42cdde8a3f /src/unitnumber.cpp
parent02573826558bd44f0ec3ed542964be0096d5e389 (diff)
downloadclic-9f7cbe624a91008a4cbe47c7b369c5e3f96a4eff.tar.gz
clic-9f7cbe624a91008a4cbe47c7b369c5e3f96a4eff.tar.bz2
clic-9f7cbe624a91008a4cbe47c7b369c5e3f96a4eff.tar.xz
clic-9f7cbe624a91008a4cbe47c7b369c5e3f96a4eff.zip
Division fixes, better config, more tests.0.11
Other minor fixes and options such as --version being added.
Diffstat (limited to '')
-rw-r--r--src/unitnumber.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unitnumber.cpp b/src/unitnumber.cpp
index c7b85b9..985f0d9 100644
--- a/src/unitnumber.cpp
+++ b/src/unitnumber.cpp
@@ -75,6 +75,8 @@ void UnitNumber::divide1()
75 unitTest(Number("4") / Number("10") == "0"); 75 unitTest(Number("4") / Number("10") == "0");
76 unitTest(Number("4") % Number("10") == "4"); 76 unitTest(Number("4") % Number("10") == "4");
77 unitTest(Number("200") / Number("2") == "100"); 77 unitTest(Number("200") / Number("2") == "100");
78 unitTest(Number("10", 5) / Number("0.01", 5) == "1000");
79 unitTest(Number("552", 5) / Number("0.051", 5) == "10823.52941");
78} 80}
79 81
80#define mathTest( anum, op, bnum, answ ) \ 82#define mathTest( anum, op, bnum, answ ) \