diff options
author | Mike Buland <mike@xagasoft.com> | 2014-09-26 15:54:06 -0600 |
---|---|---|
committer | Mike Buland <mike@xagasoft.com> | 2014-09-26 15:54:06 -0600 |
commit | 18a2be05bfacddcb7398f1b197bd1a5876c9a0cb (patch) | |
tree | a96538caa438e4c4965d1024ec3445988f5c750d /src | |
parent | d830593dda9525f12695c8ba2b4f62aa56658687 (diff) | |
download | clic-18a2be05bfacddcb7398f1b197bd1a5876c9a0cb.tar.gz clic-18a2be05bfacddcb7398f1b197bd1a5876c9a0cb.tar.bz2 clic-18a2be05bfacddcb7398f1b197bd1a5876c9a0cb.tar.xz clic-18a2be05bfacddcb7398f1b197bd1a5876c9a0cb.zip |
Added tests that fail for division.
We need a new division routine.
Diffstat (limited to '')
-rw-r--r-- | src/unitnumber.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/unitnumber.cpp b/src/unitnumber.cpp index 6e1a7c8..1d63682 100644 --- a/src/unitnumber.cpp +++ b/src/unitnumber.cpp | |||
@@ -300,7 +300,8 @@ void UnitNumber::fraction1() | |||
300 | mathTestS( 8, "12", /, "4", "3" ); | 300 | mathTestS( 8, "12", /, "4", "3" ); |
301 | mathTestS( 100, "9", /, "1.9", "4.7368421052631578947368421052631578947368421052631578947368421052631578947368421052631578947368421052" ); | 301 | mathTestS( 100, "9", /, "1.9", "4.7368421052631578947368421052631578947368421052631578947368421052631578947368421052631578947368421052" ); |
302 | 302 | ||
303 | mathTestS( 10, "1", /, "17", "0.0588235294" ); | 303 | mathTestS( 10, "1", /, "17", "0.0588235294" ); |
304 | mathTestS( 10, "1", /, "177", "0.0056497175" ); | 304 | mathTestS( 10, "1", /, "177", "0.0056497175" ); |
305 | mathTestS( 10, "1", /, "177.1", "0.0056465273" ); | ||
305 | } | 306 | } |
306 | 307 | ||