tagparser/tests
Martchus c3c525c352 Scale rating automatically when serializing popularity/rating field
* Allow one to get a `Popularity` where `.rating` is always between 1 and 5
  via `TagValue::toScaledPopularity()` (or a "raw" scale by specifying the
  corresponding tag format)
* Allow one to assign a `Popularity` with `.scale = TagType::Unspecified`
  and `.rating` between 1 and 5 (or a "raw" scale by specifying the
  corresponding tag format). It will then be converted internally to
  the required scale (whatever the tag format internally uses)
    * Ensure all tag formats with popularity/rating field use
      `TagValue::toScaledPopularity()` internally when a `Popularity`
      object is assigned
* Ensure all tag formats with popularity/rating field store the rating as
  popularity object to preserve the scaling information
* Keep passing raw strings around working
    * `TagValue::toString()` still does *no* scaling
    * `TagValue::toScaledPopularity()` does *no* scaling for text values
      and instead just assigns the specified scale
* See https://github.com/Martchus/tagparser/issues/23
2022-07-20 23:23:51 +02:00
..
helper.cpp Adapt to changes in c++utilities 2019-06-12 20:40:45 +02:00
helper.h Add Locale class to deal with differently specified languages/countries 2020-12-16 17:48:08 +01:00
mediafileinfo.cpp Improve passing paths 2021-04-23 22:16:43 +02:00
overall.h Extend Ogg related tests 2021-08-18 22:48:17 +02:00
overallflac.cpp Adapt tests to use KnownField::RecordDate instead of KnownField::Year 2021-02-01 17:22:57 +01:00
overallgeneral.cpp Add API to allow aborting overall/expensive parsing functions 2021-02-04 23:21:50 +01:00
overallmkv.cpp Fix parsing flags of Matroska tracks 2022-04-05 21:27:58 +02:00
overallmp3.cpp Change mapping of publisher for ID3v2 2022-04-10 00:06:20 +02:00
overallmp4.cpp Add API to allow aborting overall/expensive parsing functions 2021-02-04 23:21:50 +01:00
overallogg.cpp Apply clang-format 2022-05-23 19:55:50 +02:00
tagvalue.cpp Scale rating automatically when serializing popularity/rating field 2022-07-20 23:23:51 +02:00
testfilecheck.cpp Extend Ogg related tests 2021-08-18 22:48:17 +02:00
utils.cpp Use `std::filesystem` in backup helper code 2021-09-11 23:54:49 +02:00