diff options
| -rw-r--r-- | src/unitnumber.cpp | 36 |
1 files changed, 6 insertions, 30 deletions
diff --git a/src/unitnumber.cpp b/src/unitnumber.cpp index c316d4b..4f80538 100644 --- a/src/unitnumber.cpp +++ b/src/unitnumber.cpp | |||
| @@ -19,6 +19,8 @@ UnitNumber::UnitNumber() | |||
| 19 | "divide1", Bu::UnitSuite::expectPass ); | 19 | "divide1", Bu::UnitSuite::expectPass ); |
| 20 | add( static_cast<Bu::UnitSuite::Test>(&UnitNumber::number1), | 20 | add( static_cast<Bu::UnitSuite::Test>(&UnitNumber::number1), |
| 21 | "number1", Bu::UnitSuite::expectPass ); | 21 | "number1", Bu::UnitSuite::expectPass ); |
| 22 | add( static_cast<Bu::UnitSuite::Test>(&UnitNumber::number2), | ||
| 23 | "number2", Bu::UnitSuite::expectPass ); | ||
| 22 | add( static_cast<Bu::UnitSuite::Test>(&UnitNumber::compare1), | 24 | add( static_cast<Bu::UnitSuite::Test>(&UnitNumber::compare1), |
| 23 | "compare1", Bu::UnitSuite::expectPass ); | 25 | "compare1", Bu::UnitSuite::expectPass ); |
| 24 | add( static_cast<Bu::UnitSuite::Test>(&UnitNumber::radix1), | 26 | add( static_cast<Bu::UnitSuite::Test>(&UnitNumber::radix1), |
| @@ -144,38 +146,12 @@ void UnitNumber::number1() | |||
| 144 | void UnitNumber::number2() | 146 | void UnitNumber::number2() |
| 145 | { | 147 | { |
| 146 | mathTest("55", +, "-100", 0, "-45"); | 148 | mathTest("55", +, "-100", 0, "-45"); |
| 147 | mathTest("30.01", +, "-31.21", 2, "-1.20"); | 149 | mathTest("30.01", +, "-31.21", 2, "-1.2"); |
| 148 | mathTest("55", -, "100", 0, "-45"); | 150 | mathTest("55", -, "100", 0, "-45"); |
| 149 | mathTest("30.01", -, "31.21", 2, "-1.20"); | 151 | mathTest("30.01", -, "31.21", 2, "-1.2"); |
| 150 | // mathTest( "1", /, "17", 10, "0.0588235294" ); | 152 | mathTest( "1", /, "17", 10, "0.0588235294" ); |
| 151 | // mathTest( "1", /, "177", 10, "0.0056497175" ); | 153 | mathTest( "1", /, "177", 10, "0.0056497175" ); |
| 152 | } | 154 | } |
| 153 | |||
| 154 | |||
| 155 | /* | ||
| 156 | // clic | ||
| 157 | 1/17 | ||
| 158 | 0.0588235294 | ||
| 159 | 1/177 | ||
| 160 | 0.0005649717 | ||
| 161 | |||
| 162 | |||
| 163 | // bc | ||
| 164 | 1/17 | ||
| 165 | .0588235294 | ||
| 166 | 1/177 | ||
| 167 | .0056497175 | ||
| 168 | |||
| 169 | |||
| 170 | 1/17 | ||
| 171 | bc: .0588235294 | ||
| 172 | clic: 0.0588235294 | ||
| 173 | |||
| 174 | 1/177 | ||
| 175 | bc: .0056497175 | ||
| 176 | clic: 0.0005649717 | ||
| 177 | */ | ||
| 178 | //} | ||
| 179 | #undef mathTest | 155 | #undef mathTest |
| 180 | 156 | ||
| 181 | #define compcheck( anum, op, bnum ) \ | 157 | #define compcheck( anum, op, bnum ) \ |
