KFormat: Add unit tests for mili/micro SI prefixes
ClosedPublic

Authored by bruns on Jul 15 2018, 12:51 AM.

Details

Summary

Add test cases for KFormat::formatValue(...) with value smaller than
1.0, with fixed and automatic SI prefix.

Diff Detail

Repository
R244 KCoreAddons
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
bruns created this revision.Jul 15 2018, 12:51 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptJul 15 2018, 12:51 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
bruns requested review of this revision.Jul 15 2018, 12:51 AM
astippich accepted this revision.Jul 15 2018, 10:50 AM
astippich added a subscriber: astippich.

test itself is fine, but I spotted a typo.

autotests/kformattest.cpp
118

typo: KFormat::UnitPrefix::Mil_l_i . Should be safe to change it since it hasn't been released in its current state, isn't it?

This revision is now accepted and ready to land.Jul 15 2018, 10:50 AM
bruns updated this revision to Diff 37808.Jul 15 2018, 3:12 PM

update after typo fix

bruns marked an inline comment as done.Jul 15 2018, 3:36 PM
bruns added inline comments.
autotests/kformattest.cpp
118

see D14135

This revision was automatically updated to reflect the committed changes.
bruns marked an inline comment as done.