2018-03-01 16:06:23 +00:00
|
|
|
TAP version 13
|
|
|
|
# tst_float
|
|
|
|
ok 1 - initTestCase()
|
|
|
|
ok 2 - floatComparisons(should SUCCEED 1)
|
|
|
|
not ok 3 - floatComparisons(should FAIL 1)
|
|
|
|
---
|
|
|
|
type: QCOMPARE
|
|
|
|
message: Compared floats are not the same (fuzzy compare)
|
|
|
|
wanted: 3 (operandRight)
|
|
|
|
found: 1 (operandLeft)
|
|
|
|
expected: 3 (operandRight)
|
|
|
|
actual: 1 (operandLeft)
|
2018-11-09 13:05:35 +00:00
|
|
|
at: tst_float::floatComparisons() (qtbase/tests/auto/testlib/selftests/float/tst_float.cpp:51)
|
2018-03-01 16:06:23 +00:00
|
|
|
file: qtbase/tests/auto/testlib/selftests/float/tst_float.cpp
|
2018-11-09 13:05:35 +00:00
|
|
|
line: 51
|
2018-03-01 16:06:23 +00:00
|
|
|
...
|
|
|
|
not ok 4 - floatComparisons(should FAIL 2)
|
|
|
|
---
|
|
|
|
type: QCOMPARE
|
|
|
|
message: Compared floats are not the same (fuzzy compare)
|
|
|
|
wanted: 3e-07 (operandRight)
|
|
|
|
found: 1e-07 (operandLeft)
|
|
|
|
expected: 3e-07 (operandRight)
|
|
|
|
actual: 1e-07 (operandLeft)
|
2018-11-09 13:05:35 +00:00
|
|
|
at: tst_float::floatComparisons() (qtbase/tests/auto/testlib/selftests/float/tst_float.cpp:51)
|
2018-03-01 16:06:23 +00:00
|
|
|
file: qtbase/tests/auto/testlib/selftests/float/tst_float.cpp
|
2018-11-09 13:05:35 +00:00
|
|
|
line: 51
|
2018-03-01 16:06:23 +00:00
|
|
|
...
|
|
|
|
not ok 5 - floatComparisons(should FAIL 3)
|
|
|
|
---
|
|
|
|
type: QCOMPARE
|
|
|
|
message: Compared floats are not the same (fuzzy compare)
|
|
|
|
wanted: 99999 (operandRight)
|
|
|
|
found: 99998 (operandLeft)
|
|
|
|
expected: 99999 (operandRight)
|
|
|
|
actual: 99998 (operandLeft)
|
2018-11-09 13:05:35 +00:00
|
|
|
at: tst_float::floatComparisons() (qtbase/tests/auto/testlib/selftests/float/tst_float.cpp:51)
|
2018-03-01 16:06:23 +00:00
|
|
|
file: qtbase/tests/auto/testlib/selftests/float/tst_float.cpp
|
2018-11-09 13:05:35 +00:00
|
|
|
line: 51
|
2018-03-01 16:06:23 +00:00
|
|
|
...
|
|
|
|
ok 6 - floatComparisons(should SUCCEED 2)
|
2018-11-09 13:05:35 +00:00
|
|
|
ok 7 - float16Comparisons(should SUCCEED 1)
|
|
|
|
not ok 8 - float16Comparisons(should FAIL 1)
|
|
|
|
---
|
|
|
|
type: QCOMPARE
|
|
|
|
message: Compared qfloat16s are not the same (fuzzy compare)
|
|
|
|
wanted: 3 (operandRight)
|
|
|
|
found: 1 (operandLeft)
|
|
|
|
expected: 3 (operandRight)
|
|
|
|
actual: 1 (operandLeft)
|
|
|
|
at: tst_float::float16Comparisons() (qtbase/tests/auto/testlib/selftests/float/tst_float.cpp:90)
|
|
|
|
file: qtbase/tests/auto/testlib/selftests/float/tst_float.cpp
|
|
|
|
line: 90
|
|
|
|
...
|
|
|
|
not ok 9 - float16Comparisons(should FAIL 2)
|
|
|
|
---
|
|
|
|
type: QCOMPARE
|
|
|
|
message: Compared qfloat16s are not the same (fuzzy compare)
|
|
|
|
wanted: 0.0003 (operandRight)
|
|
|
|
found: 0.0001 (operandLeft)
|
|
|
|
expected: 0.0003 (operandRight)
|
|
|
|
actual: 0.0001 (operandLeft)
|
|
|
|
at: tst_float::float16Comparisons() (qtbase/tests/auto/testlib/selftests/float/tst_float.cpp:90)
|
|
|
|
file: qtbase/tests/auto/testlib/selftests/float/tst_float.cpp
|
|
|
|
line: 90
|
|
|
|
...
|
|
|
|
not ok 10 - float16Comparisons(should FAIL 3)
|
|
|
|
---
|
|
|
|
type: QCOMPARE
|
|
|
|
message: Compared qfloat16s are not the same (fuzzy compare)
|
|
|
|
wanted: 99 (operandRight)
|
|
|
|
found: 98 (operandLeft)
|
|
|
|
expected: 99 (operandRight)
|
|
|
|
actual: 98 (operandLeft)
|
|
|
|
at: tst_float::float16Comparisons() (qtbase/tests/auto/testlib/selftests/float/tst_float.cpp:90)
|
|
|
|
file: qtbase/tests/auto/testlib/selftests/float/tst_float.cpp
|
|
|
|
line: 90
|
|
|
|
...
|
|
|
|
ok 11 - float16Comparisons(should SUCCEED 2)
|
|
|
|
not ok 12 - compareFloatTests(1e0)
|
2018-03-01 16:06:23 +00:00
|
|
|
---
|
|
|
|
type: QCOMPARE
|
|
|
|
message: Compared floats are not the same (fuzzy compare)
|
|
|
|
wanted: 3 (t3)
|
|
|
|
found: 1 (t1)
|
|
|
|
expected: 3 (t3)
|
|
|
|
actual: 1 (t1)
|
2018-11-09 13:05:35 +00:00
|
|
|
at: tst_float::compareFloatTests() (qtbase/tests/auto/testlib/selftests/float/tst_float.cpp:135)
|
2018-03-01 16:06:23 +00:00
|
|
|
file: qtbase/tests/auto/testlib/selftests/float/tst_float.cpp
|
2018-11-09 13:05:35 +00:00
|
|
|
line: 135
|
2018-03-01 16:06:23 +00:00
|
|
|
...
|
2018-11-09 13:05:35 +00:00
|
|
|
not ok 13 - compareFloatTests(1e-7)
|
2018-03-01 16:06:23 +00:00
|
|
|
---
|
|
|
|
type: QCOMPARE
|
|
|
|
message: Compared floats are not the same (fuzzy compare)
|
|
|
|
wanted: 3e-07 (t3)
|
|
|
|
found: 1e-07 (t1)
|
|
|
|
expected: 3e-07 (t3)
|
|
|
|
actual: 1e-07 (t1)
|
2018-11-09 13:05:35 +00:00
|
|
|
at: tst_float::compareFloatTests() (qtbase/tests/auto/testlib/selftests/float/tst_float.cpp:135)
|
2018-03-01 16:06:23 +00:00
|
|
|
file: qtbase/tests/auto/testlib/selftests/float/tst_float.cpp
|
2018-11-09 13:05:35 +00:00
|
|
|
line: 135
|
2018-03-01 16:06:23 +00:00
|
|
|
...
|
2018-11-09 13:05:35 +00:00
|
|
|
not ok 14 - compareFloatTests(1e+7)
|
2018-03-01 16:06:23 +00:00
|
|
|
---
|
|
|
|
type: QCOMPARE
|
|
|
|
message: Compared floats are not the same (fuzzy compare)
|
|
|
|
wanted: 3e+07 (t3)
|
|
|
|
found: 1e+07 (t1)
|
|
|
|
expected: 3e+07 (t3)
|
|
|
|
actual: 1e+07 (t1)
|
2018-11-09 13:05:35 +00:00
|
|
|
at: tst_float::compareFloatTests() (qtbase/tests/auto/testlib/selftests/float/tst_float.cpp:135)
|
2018-03-01 16:06:23 +00:00
|
|
|
file: qtbase/tests/auto/testlib/selftests/float/tst_float.cpp
|
2018-11-09 13:05:35 +00:00
|
|
|
line: 135
|
2018-03-01 16:06:23 +00:00
|
|
|
...
|
2018-11-09 13:05:35 +00:00
|
|
|
ok 15 - cleanupTestCase()
|
|
|
|
1..15
|
|
|
|
# tests 15
|
|
|
|
# pass 6
|
|
|
|
# fail 9
|