From 01ece201ab08804c4ab226a39f1e1885aeaae0bd Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Tue, 20 Sep 2011 11:56:31 +1000 Subject: Split subtest selftest This test was attempting to verify two completely unrelated things, so this commit splits it into two tests. Also, printf calls are replaced by qDebug so that the test does not bypass the testlib loggers. Change-Id: I1a202af38ce2c69690a32d93405ba604ec6cabee Reviewed-on: http://codereview.qt-project.org/5178 Reviewed-by: Rohan McGovern --- tests/auto/testlib/selftests/expected_float.txt | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tests/auto/testlib/selftests/expected_float.txt (limited to 'tests/auto/testlib/selftests/expected_float.txt') diff --git a/tests/auto/testlib/selftests/expected_float.txt b/tests/auto/testlib/selftests/expected_float.txt new file mode 100644 index 0000000000..322fc5ce44 --- /dev/null +++ b/tests/auto/testlib/selftests/expected_float.txt @@ -0,0 +1,26 @@ +********* Start testing of tst_float ********* +Config: Using QTest library 5.0.0, Qt 5.0.0 +PASS : tst_float::initTestCase() +FAIL! : tst_float::floatComparisons(should FAIL) Compared floats are not the same (fuzzy compare) + Actual (operandLeft): 1 + Expected (operandRight): 3 + Loc: [/home/user/dev/qt5/tests/auto/testlib/selftests/float/tst_float.cpp(61)] +FAIL! : tst_float::floatComparisons(should FAIL) Compared floats are not the same (fuzzy compare) + Actual (operandLeft): 1e-07 + Expected (operandRight): 3e-07 + Loc: [/home/user/dev/qt5/tests/auto/testlib/selftests/float/tst_float.cpp(61)] +FAIL! : tst_float::compareFloatTests(1e0) Compared floats are not the same (fuzzy compare) + Actual (t1): 1 + Expected (t3): 3 + Loc: [/home/user/dev/qt5/tests/auto/testlib/selftests/float/tst_float.cpp(100)] +FAIL! : tst_float::compareFloatTests(1e-7) Compared floats are not the same (fuzzy compare) + Actual (t1): 1e-07 + Expected (t3): 3e-07 + Loc: [/home/user/dev/qt5/tests/auto/testlib/selftests/float/tst_float.cpp(100)] +FAIL! : tst_float::compareFloatTests(1e+7) Compared floats are not the same (fuzzy compare) + Actual (t1): 1e+07 + Expected (t3): 3e+07 + Loc: [/home/user/dev/qt5/tests/auto/testlib/selftests/float/tst_float.cpp(100)] +PASS : tst_float::cleanupTestCase() +Totals: 2 passed, 5 failed, 0 skipped +********* Finished testing of tst_float ********* -- cgit v1.2.3