Test empty and zero gps data
ClosedPublic

Authored by astippich on Jan 12 2019, 10:40 AM.

Details

Summary

Create a new test that more extensively
checks gps data obtained via exiv. The test
currently fails.

Diff Detail

Repository
R286 KFileMetaData
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
astippich created this revision.Jan 12 2019, 10:40 AM
Restricted Application added projects: Frameworks, Baloo. · View Herald TranscriptJan 12 2019, 10:40 AM
Restricted Application added subscribers: Baloo, kde-frameworks-devel. · View Herald Transcript
astippich requested review of this revision.Jan 12 2019, 10:40 AM
bruns added inline comments.Jan 12 2019, 4:46 PM
autotests/exiv2extractortest.cpp
61

move this up, as it is not specific to this test case

64

although only copied, I think it should be written like the other two:
QCOMPARE(result.properties().value(PhotoGpsAltiitude).toDouble(), 12.2);

astippich updated this revision to Diff 49377.Jan 13 2019, 11:22 AM
  • move namespace
astippich marked an inline comment as done.Jan 13 2019, 11:23 AM
astippich added inline comments.
autotests/exiv2extractortest.cpp
64

That's not possible, qFuzzyCompare does not handle this correctly with a too small epsilon. It's probably because of the float->double conversion in the extractor

astippich retitled this revision from test empty and zero gps data to Test empty and zero gps data.Jan 13 2019, 11:24 AM
bruns added inline comments.Jan 13 2019, 5:58 PM
autotests/exiv2extractortest.cpp
64

see comment in the other review

bruns accepted this revision.Jan 18 2019, 8:05 PM
This revision is now accepted and ready to land.Jan 18 2019, 8:05 PM
This revision was automatically updated to reflect the committed changes.