Start testing: Dec 04 17:12 CET ---------------------------------------------------------- 1/1 Testing: KNumber 1/1 Test: KNumber Command: "/var/tmp/portage/kde-base/kcalc-4.7.3/work/kcalc-4.7.3_build/kcalc/knumber/tests/knumbertest.shell" Directory: /var/tmp/portage/kde-base/kcalc-4.7.3/work/kcalc-4.7.3_build/kcalc/knumber/tests "KNumber" start time: Dec 04 17:12 CET Output: ---------------------------------------------------------- Testing Constructors: Testing result of: KNumber(5) should give 5 and gives 5.... The type of the result should be Integer and gives Integer.... OK Testing type of: KNumber(5.3) should give Float and gives Float....OK Testing type of: KNumber(0.0) should give Float and gives Float....OK Testing result of: KNumber("5") should give 5 and gives 5.... The type of the result should be Integer and gives Integer.... OK Testing result of: KNumber("5/3") should give 5/3 and gives 5/3.... The type of the result should be Fraction and gives Fraction.... OK Testing result of: KNumber("5/1") should give 5 and gives 5.... The type of the result should be Integer and gives Integer.... OK Testing result of: KNumber("0/12") should give 0 and gives 0.... The type of the result should be Integer and gives Integer.... OK Read decimals as fractions: Testing result of: KNumber("5") should give 5 and gives 5.... The type of the result should be Integer and gives Integer.... OK Testing result of: KNumber("1.2") should give 6/5 and gives 6/5.... The type of the result should be Fraction and gives Fraction.... OK Testing result of: KNumber("-0.02") should give -1/50 and gives -1/50.... The type of the result should be Fraction and gives Fraction.... OK Testing result of: KNumber("5e-2") should give 1/20 and gives 1/20.... The type of the result should be Fraction and gives Fraction.... OK Testing result of: KNumber("1.2e3") should give 1200 and gives 1200.... The type of the result should be Integer and gives Integer.... OK Testing result of: KNumber("0.02e+1") should give 1/5 and gives 1/5.... The type of the result should be Fraction and gives Fraction.... OK Read decimals as floats: Testing result of: KNumber("5.3") should give 5.3 and gives 5.3.... The type of the result should be Float and gives Float.... OK Testing result of: KNumber("nan") should give nan and gives nan.... The type of the result should be Special and gives Special.... OK Testing result of: KNumber("inf") should give inf and gives inf.... The type of the result should be Special and gives Special.... OK Testing result of: KNumber("-inf") should give -inf and gives -inf.... The type of the result should be Special and gives Special.... OK Constants: Testing type of: KNumber::Zero should give Integer and gives Integer....OK Testing type of: KNumber::One should give Integer and gives Integer....OK Testing type of: KNumber::MinusOne should give Integer and gives Integer....OK Testing type of: KNumber::Pi should give Float and gives Float....OK Testing Compare: Testing truth of: KNumber(5) == KNumber(2) should be 0 and is 0.... OK Testing truth of: KNumber(5) > KNumber(2) should be 1 and is 1.... OK Testing truth of: KNumber(5) < KNumber(2) should be 0 and is 0.... OK Testing truth of: KNumber(5) < KNumber(0) should be 0 and is 0.... OK Testing truth of: KNumber(-5) < KNumber(0) should be 1 and is 1.... OK Testing truth of: KNumber(5) >= KNumber(2) should be 1 and is 1.... OK Testing truth of: KNumber(5) <= KNumber(2) should be 0 and is 0.... OK Testing truth of: KNumber(5) != KNumber(2) should be 1 and is 1.... OK Testing truth of: KNumber(2) == KNumber(2) should be 1 and is 1.... OK Testing truth of: KNumber(2) > KNumber(2) should be 0 and is 0.... OK Testing truth of: KNumber(2) < KNumber(2) should be 0 and is 0.... OK Testing truth of: KNumber(2) >= KNumber(2) should be 1 and is 1.... OK Testing truth of: KNumber(2) <= KNumber(2) should be 1 and is 1.... OK Testing truth of: KNumber(2) != KNumber(2) should be 0 and is 0.... OK Testing truth of: KNumber(5) == KNumber("1/2") should be 0 and is 0.... OK Testing truth of: KNumber(5) > KNumber("1/2") should be 1 and is 1.... OK Testing truth of: KNumber(5) < KNumber("1/2") should be 0 and is 0.... OK Testing truth of: KNumber(5) >= KNumber("1/2") should be 1 and is 1.... OK Testing truth of: KNumber(5) <= KNumber("1/2") should be 0 and is 0.... OK Testing truth of: KNumber(5) != KNumber("1/2") should be 1 and is 1.... OK Testing truth of: KNumber("1/2") == KNumber("1/2") should be 1 and is 1.... OK Testing truth of: KNumber("1/2") > KNumber("1/2") should be 0 and is 0.... OK Testing truth of: KNumber("1/2") < KNumber("1/2") should be 0 and is 0.... OK Testing truth of: KNumber("1/2") >= KNumber("1/2") should be 1 and is 1.... OK Testing truth of: KNumber("1/2") <= KNumber("1/2") should be 1 and is 1.... OK Testing truth of: KNumber("1/2") != KNumber("1/2") should be 0 and is 0.... OK Testing truth of: KNumber("3/2") == KNumber("1/2") should be 0 and is 0.... OK Testing truth of: KNumber("3/2") > KNumber("1/2") should be 1 and is 1.... OK Testing truth of: KNumber("3/2") < KNumber("1/2") should be 0 and is 0.... OK Testing truth of: KNumber("3/2") >= KNumber("1/2") should be 1 and is 1.... OK Testing truth of: KNumber("3/2") <= KNumber("1/2") should be 0 and is 0.... OK Testing truth of: KNumber("3/2") != KNumber("1/2") should be 1 and is 1.... OK Testing additions: Testing result of: KNumber(5) + KNumber(2) should give 7 and gives 7.... The type of the result should be Integer and gives Integer.... OK Testing result of: KNumber(5) + KNumber("2/3") should give 17/3 and gives 7.3.... The type of the result should be Fraction and gives Float.... Failed Test time = 0.06 sec ---------------------------------------------------------- Test Failed. "KNumber" end time: Dec 04 17:12 CET "KNumber" time elapsed: 00:00:00 ---------------------------------------------------------- End testing: Dec 04 17:12 CET