summaryrefslogtreecommitdiff
path: root/src/unitnumber.cpp
diff options
context:
space:
mode:
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 ) \