01ece201ab
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 <rohan.mcgovern@nokia.com>
30 lines
1.3 KiB
XML
30 lines
1.3 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<testsuite errors="0" failures="5" tests="4" name="tst_float">
|
|
<properties>
|
|
<property value="@INSERT_QT_VERSION_HERE@" name="QTestVersion"/>
|
|
<property value="@INSERT_QT_VERSION_HERE@" name="QtVersion"/>
|
|
</properties>
|
|
<testcase result="pass" name="initTestCase"/>
|
|
<testcase result="fail" name="floatComparisons">
|
|
<failure tag="should FAIL" message="Compared floats are not the same (fuzzy compare)
|
|
Actual (operandLeft): 1
|
|
Expected (operandRight): 3" result="fail"/>
|
|
<failure tag="should FAIL" message="Compared floats are not the same (fuzzy compare)
|
|
Actual (operandLeft): 1e-07
|
|
Expected (operandRight): 3e-07" result="fail"/>
|
|
</testcase>
|
|
<testcase result="fail" name="compareFloatTests">
|
|
<failure tag="1e0" message="Compared floats are not the same (fuzzy compare)
|
|
Actual (t1): 1
|
|
Expected (t3): 3" result="fail"/>
|
|
<failure tag="1e-7" message="Compared floats are not the same (fuzzy compare)
|
|
Actual (t1): 1e-07
|
|
Expected (t3): 3e-07" result="fail"/>
|
|
<failure tag="1e+7" message="Compared floats are not the same (fuzzy compare)
|
|
Actual (t1): 1e+07
|
|
Expected (t3): 3e+07" result="fail"/>
|
|
</testcase>
|
|
<testcase result="pass" name="cleanupTestCase"/>
|
|
<system-err/>
|
|
</testsuite>
|